public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/24552]  New: Encoding alias "EUC_JP" missing
@ 2005-10-27  3:39 hnakamur at good-day dot co dot jp
  2005-10-27 13:59 ` [Bug libgcj/24552] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hnakamur at good-day dot co dot jp @ 2005-10-27  3:39 UTC (permalink / raw)
  To: java-prs

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


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

* [Bug libgcj/24552] Encoding alias "EUC_JP" missing
  2005-10-27  3:39 [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing hnakamur at good-day dot co dot jp
@ 2005-10-27 13:59 ` pinskia at gcc dot gnu dot org
  2005-10-31  2:03 ` hnakamur at good-day dot co dot jp
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-27 13:59 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-27 13:59 -------
Related to PR14358


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24552


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

* [Bug libgcj/24552] Encoding alias "EUC_JP" missing
  2005-10-27  3:39 [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing hnakamur at good-day dot co dot jp
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hnakamur at good-day dot co dot jp @ 2005-10-31  2:03 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from hnakamur at good-day dot co dot jp  2005-10-31 02:03 -------
Yes, this is related to PR14358, but this is different from that.

Bug25552: EUC_JP
 PR14358: eucJP

We need both of aliases above. We also need the alias named "euc-jp".
So we need the three lines below.

hash.put ("euc-jp", "EUCJIS");
hash.put ("euc_jp", "EUCJIS");
hash.put ("eucjp", "EUCJIS");


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24552


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

* [Bug libgcj/24552] Encoding alias "EUC_JP" missing
  2005-10-27  3:39 [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing hnakamur at good-day dot co dot jp
  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
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-10-31 17:48 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from tromey at gcc dot gnu dot org  2005-10-31 17:48 -------
I'll handle this.

I agree, we need this alias.
That particular part of the code is generated by
the script libjava/scripts/encodings.pl.

Looking at the current IANA character-sets file, I see
there is only this:

Alias: csEUCPkdFmtJapanese
Alias: EUC-JP  (preferred MIME name)

I think instead we should put a hand-maintained alias earlier
in the static initializer.

Unfortunately we can't do this until gcc trunk re-opens.
I'll put a patch on the 4.0 branch though.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-31 17:48:00
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24552


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

* [Bug libgcj/24552] Encoding alias "EUC_JP" missing
  2005-10-27  3:39 [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing hnakamur at good-day dot co dot jp
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: hnakamur at good-day dot co dot jp @ 2005-11-01  1:48 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from hnakamur at good-day dot co dot jp  2005-11-01 01:48 -------
You are correct that IANA character-sets file only contains
two "EUC-JP" aliases: csEUCPkdFmtJapanese and EUC-JP.

But actually there are many non-Java programs which use other aliases and
do not accept above aliases.  Also I never see csEUCPkdFmtJapanese
anywhere else in the IANA character-sets.

I understand the situation that we can't put this patch to gcc trunk right
now and you will put it in the 4.0 branch.

Thank you for your help.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24552


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

* [Bug libgcj/24552] Encoding alias "EUC_JP" missing
  2005-10-27  3:39 [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing hnakamur at good-day dot co dot jp
                   ` (3 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-11-04 15:09 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from tromey at gcc dot gnu dot org  2005-11-04 15:09 -------
Fix is on 4.0 branch and trunk.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24552


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

end of thread, other threads:[~2005-11-04 15:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-27  3:39 [Bug libgcj/24552] New: Encoding alias "EUC_JP" missing hnakamur at good-day dot co dot jp
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

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).