* wcsmbs/mbsrtowcs.c: Compute return value correctly after change
in gconv function.
2000-01-18 Ulrich Drepper <drepper@cygnus.com>
2000-01-18 Ulrich Drepper <drepper@cygnus.com>
+ * wcsmbs/mbsrtowcs.c: Compute return value correctly after change
+ in gconv function.
+
* wcsmbs/mbrtowc.c: Don't set errno if byte sequence is only
incomplete but correct.
* wcsmbs/mbrtowc.c: Don't set errno if byte sequence is only
incomplete but correct.
+2000-01-18 Ulrich Drepper <drepper@cygnus.com>
+
+ * locales/ja_JP: Add double-width digits to digit class.
+
2000-01-12 Ulrich Drepper <drepper@cygnus.com>
* charmaps/ISO-8859-16: Add mapping for /xba.
2000-01-12 Ulrich Drepper <drepper@cygnus.com>
* charmaps/ISO-8859-16: Add mapping for /xba.
<J1137>....<J1187>
digit <zero>;<one>;<two>;<three>;<four>;/
<J1137>....<J1187>
digit <zero>;<one>;<two>;<three>;<four>;/
- <five>;<six>;<seven>;<eight>;<nine>
+ <five>;<six>;<seven>;<eight>;<nine>;/
+ <j0316>;<j0317>;<j0318>;<j0319>;<j0320>;/
+ <j0321>;<j0322>;<j0323>;<j0324>;<j0325>
xdigit <zero>;<one>;<two>;<three>;<four>;/
<five>;<six>;<seven>;<eight>;<nine>;/
xdigit <zero>;<one>;<two>;<three>;<four>;/
<five>;<six>;<seven>;<eight>;<nine>;/
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
mbstate_t *ps;
{
struct __gconv_step_data data;
mbstate_t *ps;
{
struct __gconv_step_data data;
int status;
struct __gconv_step *towc;
int status;
struct __gconv_step *towc;
/* Tell where we want the result. */
data.__invocation_counter = 0;
/* Tell where we want the result. */
data.__invocation_counter = 0;
const unsigned char *inbuf = (const unsigned char *) *src;
const unsigned char *srcend = inbuf + strlen (inbuf) + 1;
const unsigned char *inbuf = (const unsigned char *) *src;
const unsigned char *srcend = inbuf + strlen (inbuf) + 1;
data.__outbufend = (char *) buf + sizeof (buf);
do
{
data.__outbuf = (char *) buf;
status = (*towc->__fct) (__wcsmbs_gconv_fcts.towc, &data, &inbuf,
data.__outbufend = (char *) buf + sizeof (buf);
do
{
data.__outbuf = (char *) buf;
status = (*towc->__fct) (__wcsmbs_gconv_fcts.towc, &data, &inbuf,
+ srcend, &non_reversible, 0);
+
+ result += (wchar_t *) data.__outbuf - buf;
}
while (status == __GCONV_FULL_OUTPUT);
}
while (status == __GCONV_FULL_OUTPUT);
status = (*towc->__fct) (__wcsmbs_gconv_fcts.towc, &data,
(const unsigned char **) src, srcend,
status = (*towc->__fct) (__wcsmbs_gconv_fcts.towc, &data,
(const unsigned char **) src, srcend,
+ &non_reversible, 0);
+
+ result = (wchar_t *) data.__outbuf - dst;
/* We have to determine whether the last character converted
is the NUL character. */
/* We have to determine whether the last character converted
is the NUL character. */