typo in UTF-16 converter
Bruno Haible
haible@ilog.fr
Thu Apr 12 05:43:00 GMT 2001
This looks like a typo. MIN_NEEDED_FROM is 2 but MAX_NEEDED_FROM is 4.
2001-04-11 Bruno Haible <haible@clisp.cons.org>
* iconvdata/utf-16.c (gconv_init): Use MAX_NEEDED_FROM, not
MIN_NEEDED_FROM.
*** glibc-20010315/iconvdata/utf-16.c.bak Mon Dec 4 19:53:44 2000
--- glibc-20010315/iconvdata/utf-16.c Wed Apr 11 12:01:36 2001
***************
*** 1,5 ****
/* Conversion module for UTF-16.
! Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
--- 1,5 ----
/* Conversion module for UTF-16.
! Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
***************
*** 159,165 ****
if (dir == from_utf16)
{
step->__min_needed_from = MIN_NEEDED_FROM;
! step->__max_needed_from = MIN_NEEDED_FROM;
step->__min_needed_to = MIN_NEEDED_TO;
step->__max_needed_to = MIN_NEEDED_TO;
}
--- 159,165 ----
if (dir == from_utf16)
{
step->__min_needed_from = MIN_NEEDED_FROM;
! step->__max_needed_from = MAX_NEEDED_FROM;
step->__min_needed_to = MIN_NEEDED_TO;
step->__max_needed_to = MIN_NEEDED_TO;
}
***************
*** 168,174 ****
step->__min_needed_from = MIN_NEEDED_TO;
step->__max_needed_from = MIN_NEEDED_TO;
step->__min_needed_to = MIN_NEEDED_FROM;
! step->__max_needed_to = MIN_NEEDED_FROM;
}
step->__stateful = 0;
--- 168,174 ----
step->__min_needed_from = MIN_NEEDED_TO;
step->__max_needed_from = MIN_NEEDED_TO;
step->__min_needed_to = MIN_NEEDED_FROM;
! step->__max_needed_to = MAX_NEEDED_FROM;
}
step->__stateful = 0;
More information about the Libc-alpha
mailing list