public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4084] New: iconv_open fails with special character set "char"
@ 2007-02-21 11:34 aurelien at aurel32 dot net
  2007-02-21 15:48 ` [Bug libc/4084] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: aurelien at aurel32 dot net @ 2007-02-21 11:34 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/4084] iconv_open fails with special character set "char"
  2007-02-21 11:34 [Bug libc/4084] New: iconv_open fails with special character set "char" aurelien at aurel32 dot net
@ 2007-02-21 15:48 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2007-02-21 15:48 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-02-21 15:48 -------
What on earth does the libiconv description has to do with glibc's
implementation?  CHAR is a stupid idea I'm not going to tolerate.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-21 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 11:34 [Bug libc/4084] New: iconv_open fails with special character set "char" aurelien at aurel32 dot net
2007-02-21 15:48 ` [Bug libc/4084] " drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).