From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27355 invoked by alias); 27 Oct 2005 03:39:40 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 27331 invoked by uid 48); 27 Oct 2005 03:39:39 -0000 Date: Thu, 27 Oct 2005 03:39:00 -0000 Subject: [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "hnakamur at good-day dot co dot jp" X-SW-Source: 2005-q4/txt/msg00226.txt.bz2 List-Id: 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