public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "hnakamur at good-day dot co dot jp" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing Date: Thu, 27 Oct 2005 03:39:00 -0000 [thread overview] Message-ID: <bug-24552-11600@http.gcc.gnu.org/bugzilla/> (raw) The member variable named "hash" in the gnu.gcj.convert.IOConverter class should have a map entry key named "EUC_JP". The encoding alias "EUC_JP" is on the list of the Sun's document: "Supported Encoding" http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html So GCJ should support this encoding alias. We need the encoding alias "EUC_JP" when we run a java program which connects to a PostgreSQL database whose encoding is EUC_JP through the PostgreSQL JDBC driver. If you look at IOConverter.java source flie, http://savannah.gnu.org/cgi-bin/viewcvs/gcc/gcc/libjava/gnu/gcj/convert/IOConverter.java#rev1.8 the variable named "hash" has two duplicated "euc-jp" entries. It must be a mistake that one of those should be "euc_jp", I think. Here is a patch to fix this problem: --- libjava/gnu/gcj/convert/IOConverter.java.orig 2005-10-27 12:19:32.739262400 +0900 +++ libjava/gnu/gcj/convert/IOConverter.java 2005-10-27 12:19:56.593563200 +0900 @@ -65,7 +65,7 @@ hash.put ("extended_unix_code_packed_format_for_japanese", "EUCJIS"); hash.put ("cseucpkdfmtjapanese", "EUCJIS"); hash.put ("euc-jp", "EUCJIS"); - hash.put ("euc-jp", "EUCJIS"); + hash.put ("euc_jp", "EUCJIS"); hash.put ("utf-16le", "UnicodeLittle"); hash.put ("utf-16be", "UnicodeBig"); iconv_byte_swap = iconv_init (); -- Summary: Encoding alias "EUC_JP" missing Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hnakamur at good-day dot co dot jp http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24552
next reply other threads:[~2005-10-27 3:39 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-10-27 3:39 hnakamur at good-day dot co dot jp [this message] 2005-10-27 13:59 ` [Bug libgcj/24552] " pinskia at gcc dot gnu dot org 2005-10-31 2:03 ` hnakamur at good-day dot co dot jp 2005-10-31 17:48 ` tromey at gcc dot gnu dot org 2005-11-01 1:48 ` hnakamur at good-day dot co dot jp 2005-11-04 15:09 ` tromey at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-24552-11600@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).