This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
bug in UTF-16 converter
- To: libc-alpha at sources dot redhat dot com
- Subject: bug in UTF-16 converter
- From: Bruno Haible <haible at ilog dot fr>
- Date: Mon, 18 Sep 2000 15:08:17 +0200 (CEST)
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;