public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/12907] New: Codepage confusion in .java files
@ 2003-11-05  8:11 oyvind dot harboe at zylin dot com
  2003-11-05  8:12 ` [Bug java/12907] " oyvind dot harboe at zylin dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: oyvind dot harboe at zylin dot com @ 2003-11-05  8:11 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Codepage confusion in .java files
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: oyvind dot harboe at zylin dot com
                CC: gcc-bugs at gcc dot gnu dot org

When I try to compile the attached file, see error messages below. Works when I 
compile it from the Eclipse IDE.

C:\Temp\foo\foobar>\wingcc\bin\gcj -o test Send.java --main=Send
Send.java:6: error: malformed UTF-8 character.
                System.out.println("¨nyvind spiser ¦Òl");
                                            ^
Send.java:7: error: malformed UTF-8 character.
        }
     ^
2 errors


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

* [Bug java/12907] Codepage confusion in .java files
  2003-11-05  8:11 [Bug java/12907] New: Codepage confusion in .java files oyvind dot harboe at zylin dot com
@ 2003-11-05  8:12 ` oyvind dot harboe at zylin dot com
  2003-11-05  8:23 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: oyvind dot harboe at zylin dot com @ 2003-11-05  8:12 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From oyvind dot harboe at zylin dot com  2003-11-05 08:12 -------
Created an attachment (id=5061)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5061&action=view)
Example case


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

* [Bug java/12907] Codepage confusion in .java files
  2003-11-05  8:11 [Bug java/12907] New: Codepage confusion in .java files oyvind dot harboe at zylin dot com
  2003-11-05  8:12 ` [Bug java/12907] " oyvind dot harboe at zylin dot com
@ 2003-11-05  8:23 ` pinskia at gcc dot gnu dot org
  2003-11-05  8:33 ` oyvind dot harboe at zylin dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-05  8:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-05 08:23 -------
The default codepage is UTF-8, use --encoding=ISO8859-1 if you want it to work in this case.


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

* [Bug java/12907] Codepage confusion in .java files
  2003-11-05  8:11 [Bug java/12907] New: Codepage confusion in .java files oyvind dot harboe at zylin dot com
  2003-11-05  8:12 ` [Bug java/12907] " oyvind dot harboe at zylin dot com
  2003-11-05  8:23 ` pinskia at gcc dot gnu dot org
@ 2003-11-05  8:33 ` oyvind dot harboe at zylin dot com
  2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: oyvind dot harboe at zylin dot com @ 2003-11-05  8:33 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


oyvind dot harboe at zylin dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


------- Additional Comments From oyvind dot harboe at zylin dot com  2003-11-05 08:33 -------
I converted it to UTF8 and it compiles, but prints out the wrong chars.

Øyvind


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

* [Bug java/12907] Codepage confusion in .java files
  2003-11-05  8:11 [Bug java/12907] New: Codepage confusion in .java files oyvind dot harboe at zylin dot com
                   ` (2 preceding siblings ...)
  2003-11-05  8:33 ` oyvind dot harboe at zylin dot com
@ 2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
  2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
  2003-11-05  8:51 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: oyvind dot harboe at zylin dot com @ 2003-11-05  8:35 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From oyvind dot harboe at zylin dot com  2003-11-05 08:35 -------
Insofar that it is a  goal that GCJ should behave the same way that javac does, 
it would make sense to follow javac's codepage default handling.

Øyvind


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

* [Bug java/12907] Codepage confusion in .java files
  2003-11-05  8:11 [Bug java/12907] New: Codepage confusion in .java files oyvind dot harboe at zylin dot com
                   ` (3 preceding siblings ...)
  2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
@ 2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
  2003-11-05  8:51 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: oyvind dot harboe at zylin dot com @ 2003-11-05  8:35 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From oyvind dot harboe at zylin dot com  2003-11-05 08:35 -------
Created an attachment (id=5062)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5062&action=view)
UTF8 encoded version of same example

Now compiles, but prints out the wrong chars.


C:\Temp\foo\foobar>\wingcc\bin\gcj --main=Send Send.java -o test

C:\Temp\foo\foobar>test
╪yvind spiser σl


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

* [Bug java/12907] Codepage confusion in .java files
  2003-11-05  8:11 [Bug java/12907] New: Codepage confusion in .java files oyvind dot harboe at zylin dot com
                   ` (4 preceding siblings ...)
  2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
@ 2003-11-05  8:51 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-05  8:51 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-05 08:51 -------
See PR 5810 and bug 11755 for why gcj is right here, there are other bugs of why gcj is right here.
Printing out the wrong characters is because the LC* environment variables are not set right.


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

end of thread, other threads:[~2003-11-05  8:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05  8:11 [Bug java/12907] New: Codepage confusion in .java files oyvind dot harboe at zylin dot com
2003-11-05  8:12 ` [Bug java/12907] " oyvind dot harboe at zylin dot com
2003-11-05  8:23 ` pinskia at gcc dot gnu dot org
2003-11-05  8:33 ` oyvind dot harboe at zylin dot com
2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
2003-11-05  8:35 ` oyvind dot harboe at zylin dot com
2003-11-05  8:51 ` pinskia 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).