This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug in UTF-16 converter



The UTF-16 converter is currently unusable: iconv_open returns an error.


2000-09-17  Bruno Haible  <haible@clisp.cons.org>

	* iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
	names.

*** glibc-20000914/iconvdata/utf-16.c.bak	Mon Jul  3 16:39:27 2000
--- glibc-20000914/iconvdata/utf-16.c	Thu Sep 14 11:26:49 2000
***************
*** 109,140 ****
    enum variant var = illegal_var;
    int result;
  
!   if (__strcasecmp (step->__from_name, "UTF-16") == 0)
      {
        dir = from_utf16;
        var = UTF_16;
      }
!   else if (__strcasecmp (step->__to_name, "UTF-16") == 0)
      {
        dir = to_utf16;
        var = UTF_16;
      }
!   else if (__strcasecmp (step->__from_name, "UTF-16BE") == 0)
      {
        dir = from_utf16;
        var = UTF_16BE;
      }
!   else if (__strcasecmp (step->__to_name, "UTF-16BE") == 0)
      {
        dir = to_utf16;
        var = UTF_16BE;
      }
!   else if (__strcasecmp (step->__from_name, "UTF-16LE") == 0)
      {
        dir = from_utf16;
        var = UTF_16LE;
      }
!   else if (__strcasecmp (step->__to_name, "UTF-16LE") == 0)
      {
        dir = to_utf16;
        var = UTF_16LE;
--- 109,140 ----
    enum variant var = illegal_var;
    int result;
  
!   if (__strcasecmp (step->__from_name, "UTF-16//") == 0)
      {
        dir = from_utf16;
        var = UTF_16;
      }
!   else if (__strcasecmp (step->__to_name, "UTF-16//") == 0)
      {
        dir = to_utf16;
        var = UTF_16;
      }
!   else if (__strcasecmp (step->__from_name, "UTF-16BE//") == 0)
      {
        dir = from_utf16;
        var = UTF_16BE;
      }
!   else if (__strcasecmp (step->__to_name, "UTF-16BE//") == 0)
      {
        dir = to_utf16;
        var = UTF_16BE;
      }
!   else if (__strcasecmp (step->__from_name, "UTF-16LE//") == 0)
      {
        dir = from_utf16;
        var = UTF_16LE;
      }
!   else if (__strcasecmp (step->__to_name, "UTF-16LE//") == 0)
      {
        dir = to_utf16;
        var = UTF_16LE;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]