This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4084] New: iconv_open fails with special character set "char"
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Feb 2007 11:34:38 -0000
- Subject: [Bug libc/4084] New: iconv_open fails with special character set "char"
- Reply-to: sourceware-bugzilla at sourceware dot org
Hi,
according to
http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
iconv_open should accept "char" as a character set. To be more speicific from
that site:
Locale dependent, in terms of char or wchar_t (with machine dependent
endianness and alignment, and with semantics depending on the OS and the
current LC_CTYPE locale facet)
char, wchar_t
wchar_t works correctly, but not char. The patch below fixes the problem.
--- iconv/gconv_builtin.h.orig 2007-02-21 00:30:03.000000000 +0100
+++ iconv/gconv_builtin.h 2007-02-21 00:29:54.000000000 +0100
@@ -79,6 +79,7 @@
BUILTIN_ALIAS ("CP367//", "ANSI_X3.4-1968//")
BUILTIN_ALIAS ("CSASCII//", "ANSI_X3.4-1968//")
BUILTIN_ALIAS ("OSF00010020//", "ANSI_X3.4-1968//")
+BUILTIN_ALIAS ("CHAR//", "ANSI_X3.4-1968//")
BUILTIN_TRANSFORMATION ("ANSI_X3.4-1968//", "INTERNAL", 1, "=ascii->INTERNAL",
__gconv_transform_ascii_internal, __gconv_btwoc_ascii,
--
Summary: iconv_open fails with special character set "char"
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=4084
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.