This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/31939] Command line arguments are byteswapped before being passed to the program runing in custom locale.
- From: "serg at vostok dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2007 17:33:28 -0000
- Subject: [Bug libgcj/31939] Command line arguments are byteswapped before being passed to the program runing in custom locale.
- References: <bug-31939-14546@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from serg at vostok dot net 2007-05-15 18:33 -------
For subject 1.
Can java/gcj even be used without iconv in general?
Considering that java.io.File assumes all file names in OS are encoded in UTF-8
and java.String stores it's data in UCS-2 (UTF-16), the answer should be "NO".
TODO: Add a check in configure for presence of a UCS-2* encoding in iconv.
There we can test several well-known encoding names (UCS-2-INTERNAL, UCS-2-LE,
USC-2-BE, UCS-2LE, UCS-2BE) and set HAVE_UCS2 to the name of one with native
byte order, if found. If not, then test for plain UCS-2. If not found - bail
out with a message about needing an iconv with a UCS-2 for java.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31939