This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/14358] New: Selection of default encoding is not sufficient with EUC-JP on FreeBSD
- From: "sa2c at sa2c dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2004 08:40:17 -0000
- Subject: [Bug libgcj/14358] New: Selection of default encoding is not sufficient with EUC-JP on FreeBSD
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
On FreeBSD 4.9, nl_langinfo(CODESET) returns "eucJP" when the
LANG environment variable is "ja_JP.eucJP".
Unfortunately this name is not registered as alias for "EUCJIS";
"8859_1" is selected as default encoding.
fix:
--- libjava/gnu/gcj/convert/IOConverter.java.orig Mon Sep 17 11:28:53 2001
+++ libjava/gnu/gcj/convert/IOConverter.java Mon Mar 1 17:24:11 2004
@@ -63,6 +63,7 @@
hash.put ("extended_unix_code_packed_format_for_japanese", "EUCJIS");
hash.put ("cseucpkdfmtjapanese", "EUCJIS");
hash.put ("euc-jp", "EUCJIS");
+ hash.put ("eucJP", "EUCJIS");
iconv_byte_swap = iconv_init ();
}
--
Summary: Selection of default encoding is not sufficient with
EUC-JP on FreeBSD
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sa2c at sa2c dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-portbld-freebsd4.9
GCC host triplet: i386-portbld-freebsd4.9
GCC target triplet: i386-portbld-freebsd4.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14358