mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 02:40:08 +00:00
Update.
* stdio-common/printf-parse.h: Likewise.
This commit is contained in:
parent
404ee5fc79
commit
b837918ee1
@ -8,6 +8,7 @@
|
|||||||
* iconvdata/iso-2022-kr.c: Likewise.
|
* iconvdata/iso-2022-kr.c: Likewise.
|
||||||
* wcsmbs/mbsinit.c: Likewise.
|
* wcsmbs/mbsinit.c: Likewise.
|
||||||
* stdlib/mblen.c: Likewise.
|
* stdlib/mblen.c: Likewise.
|
||||||
|
* stdio-common/printf-parse.h: Likewise.
|
||||||
|
|
||||||
2000-04-06 Ulrich Drepper <drepper@redhat.com>
|
2000-04-06 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ find_spec (const UCHAR_T *format, mbstate_t *ps)
|
|||||||
int len;
|
int len;
|
||||||
|
|
||||||
/* Remove any hints of a wrong encoding. */
|
/* Remove any hints of a wrong encoding. */
|
||||||
ps->count = 0;
|
ps->__count = 0;
|
||||||
if (! isascii (*format) && (len = mbrlen (format, MB_CUR_MAX, ps)) > 0)
|
if (! isascii (*format) && (len = mbrlen (format, MB_CUR_MAX, ps)) > 0)
|
||||||
format += len;
|
format += len;
|
||||||
else
|
else
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -53,8 +53,7 @@ mblen (const char *s, size_t n)
|
|||||||
result = 0;
|
result = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
state.count = 0;
|
memset (&state, '\0', sizeof state);
|
||||||
state.value = 0;
|
|
||||||
|
|
||||||
result = __mbrtowc (NULL, s, n, &state);
|
result = __mbrtowc (NULL, s, n, &state);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
|
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
|
||||||
|
|
||||||
@ -32,6 +32,6 @@ int
|
|||||||
__mbsinit (ps)
|
__mbsinit (ps)
|
||||||
const mbstate_t *ps;
|
const mbstate_t *ps;
|
||||||
{
|
{
|
||||||
return ps == NULL || ps->count == 0;
|
return ps == NULL || ps->__count == 0;
|
||||||
}
|
}
|
||||||
weak_alias (__mbsinit, mbsinit)
|
weak_alias (__mbsinit, mbsinit)
|
||||||
|
Loading…
Reference in New Issue
Block a user