public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "ovidr at users dot sourceforge dot net" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug libgcj/14670] [win32] gcj & high ascii: incorrectly translated / linux: fails to compile Date: Wed, 15 Dec 2004 04:59:00 -0000 [thread overview] Message-ID: <20041215045914.4529.qmail@sourceware.org> (raw) In-Reply-To: <20040321161516.14670.ovidr@users.sourceforge.net> [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1380 bytes --] ------- Additional Comments From ovidr at users dot sourceforge dot net 2004-12-15 04:59 ------- It isn't a compiling problem that I'm trying to illustrate. TestD.java (included above) has a line: String s = "<high ascii chars>" characters. If these characters were received over a network connection as a byte stream, they would still be converted to a string via the "new String(byte[])" method, which is used in TestD.java. They would then be turned into a String, and displayed, as in the screenshot attached above. gcj doesn't seem to convert the characters properly (not in the same was a sun's java anyway). The testcase and screenshot hopefully communicate what I mean. Anyway, compiling to bytecode is separate issue: gcc version 4.0.0 20041213 (experimental) gcj -C --encoding=UTF-8 TestD.java TestD.java:12: error: malformed UTF-8 character. String s = "░ñâRÇÇNÇåñ░"; gcj -C --encoding=ISO-8859-1 TestD.java TestD.java:1: fatal error: unknown encoding: 'ISO-8859-1' This might mean that your locale's encoding is not supported by your system's iconv(3) implementation. If you aren't trying to use a particular encoding for your input file, try the '--encoding=UTF-8' option compilation terminated. I have mingw msys iconv (GNU libiconv 1.8) on my system. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14670
prev parent reply other threads:[~2004-12-15 4:59 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-21 16:15 [Bug java/14670] New: gcj & high ascii: win32: " ovidr at users dot sourceforge dot net 2004-03-21 16:18 ` [Bug java/14670] " ovidr at users dot sourceforge dot net 2004-03-21 16:18 ` ovidr at users dot sourceforge dot net 2004-03-21 16:37 ` pinskia at gcc dot gnu dot org 2004-03-21 17:25 ` ovidr at users dot sourceforge dot net 2004-04-07 3:12 ` [Bug java/14670] [win32] gcj & high ascii: " pinskia at gcc dot gnu dot org 2004-04-07 3:12 ` pinskia at gcc dot gnu dot org 2004-12-12 21:33 ` [Bug libgcj/14670] " pinskia at gcc dot gnu dot org 2004-12-12 21:34 ` pinskia at gcc dot gnu dot org 2004-12-14 20:13 ` tromey at gcc dot gnu dot org 2004-12-15 4:59 ` ovidr at users dot sourceforge dot net [this message]
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=20041215045914.4529.qmail@sourceware.org \ --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).