public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined
@ 2004-05-21 21:03 tromey at gcc dot gnu dot org
2004-05-21 21:19 ` [Bug java/15575] " pinskia at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-05-21 21:03 UTC (permalink / raw)
To: java-prs
See this note and its enclosing thread:
http://gcc.gnu.org/ml/gcc/2004-05/msg01090.html
Apparently, HAVE_LANGINFO_CODESET is never defined by configure,
meaning that the user's locale's encoding will never be detected
by gcj.
I believe this is a regression against some earlier version of gcj.
I haven't verified the facts of the report personally.
--
Summary: HAVE_LANGINFO_CODESET never defined
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
@ 2004-05-21 21:19 ` pinskia at gcc dot gnu dot org
2004-05-22 7:48 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-21 21:19 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-21 21:13 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-05-21 21:13:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
2004-05-21 21:19 ` [Bug java/15575] " pinskia at gcc dot gnu dot org
@ 2004-05-22 7:48 ` pinskia at gcc dot gnu dot org
2004-05-24 21:35 ` bonzini at gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-22 7:48 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-22 00:40 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01414.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
2004-05-21 21:19 ` [Bug java/15575] " pinskia at gcc dot gnu dot org
2004-05-22 7:48 ` pinskia at gcc dot gnu dot org
@ 2004-05-24 21:35 ` bonzini at gnu dot org
2004-06-30 15:57 ` bonzini at gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bonzini at gnu dot org @ 2004-05-24 21:35 UTC (permalink / raw)
To: java-prs
------- Additional Comments From bonzini at gnu dot org 2004-05-22 07:48 -------
Please wait before applying that libcpp is moved to the toplevel. Otherwise
the patch is going to break libgfortran which has 8-bit characters in it (and
up to a few days, C and Java had too).
For more information, see http://gcc.gnu.org/ml/gcc/2004-05/msg01007.html and
the reply at http://gcc.gnu.org/ml/gcc/2004-05/msg01026.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-05-24 21:35 ` bonzini at gnu dot org
@ 2004-06-30 15:57 ` bonzini at gnu dot org
2004-10-20 17:52 ` mckinlay at redhat dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bonzini at gnu dot org @ 2004-06-30 15:57 UTC (permalink / raw)
To: java-prs
------- Additional Comments From bonzini at gnu dot org 2004-06-30 10:02 -------
This can be applied now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-06-30 15:57 ` bonzini at gnu dot org
@ 2004-10-20 17:52 ` mckinlay at redhat dot com
2004-10-20 17:59 ` jsm at polyomino dot org dot uk
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mckinlay at redhat dot com @ 2004-10-20 17:52 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-10-20 17:52 -------
Do we really want to fix this?
The "buggy" behaviour actually seems better here because it more closely matches
what other Java compilers do and seems to have resulted in less complaints from
users since it "broke".
I propose we close this as WONTFIX and update the documentation to specify that
Utf8 is the default encoding for input files unless specified otherwise with the
--encoding flag. Comments?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-10-20 17:52 ` mckinlay at redhat dot com
@ 2004-10-20 17:59 ` jsm at polyomino dot org dot uk
2004-10-20 18:03 ` tromey at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-10-20 17:59 UTC (permalink / raw)
To: java-prs
------- Additional Comments From jsm at polyomino dot org dot uk 2004-10-20 17:59 -------
Subject: Re: HAVE_LANGINFO_CODESET never defined
On Wed, 20 Oct 2004, mckinlay at redhat dot com wrote:
> Do we really want to fix this?
>
> The "buggy" behaviour actually seems better here because it more closely matches
> what other Java compilers do and seems to have resulted in less complaints from
> users since it "broke".
>
> I propose we close this as WONTFIX and update the documentation to specify that
> Utf8 is the default encoding for input files unless specified otherwise with the
> --encoding flag. Comments?
I don't know what is best for Java, but for the C compiler POSIX specifies
use of locale to determine the encoding of source files. In addition, if
HAVE_LANGINFO_CODESET were set properly then people using UTF-8 locales
would get proper quotes in error messages. If particular languages do not
want this or don't work with it at present, they need not use the locale
for source files, but the configure test should go in for the use of
diagnostics if nothing else.
I understand Zack has proposals for changes to cpplib which would mean
that for well-behaved locale character sets (supersets of ASCII, roughly)
stray invalid characters in comments can be ignored rather than causing an
error through not being in the locale character set (and speed up cpplib
by not needing to pass most of most files through iconv).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-10-20 17:59 ` jsm at polyomino dot org dot uk
@ 2004-10-20 18:03 ` tromey at gcc dot gnu dot org
2004-10-20 18:10 ` mckinlay at redhat dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-20 18:03 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2004-10-20 18:03 -------
My understanding is that other java compilers do use the locale's
default encoding. However, unlike the glibc iconv() converter,
typically javac treats ASCII as equivalent to Latin 1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-10-20 18:03 ` tromey at gcc dot gnu dot org
@ 2004-10-20 18:10 ` mckinlay at redhat dot com
2004-10-20 21:36 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mckinlay at redhat dot com @ 2004-10-20 18:10 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-10-20 18:10 -------
Forget what I said, Tom is right. I just tested this again, and javac from JDK
1.5 does indeed use the Locale setting to determine the default encoding.
Further more, javac does appear to distinguish between ASCII and Latin1 now. I
will re-test the patch and ping it to gcc-patches.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-10-20 18:10 ` mckinlay at redhat dot com
@ 2004-10-20 21:36 ` cvs-commit at gcc dot gnu dot org
2004-10-20 21:38 ` mckinlay at redhat dot com
2004-11-06 15:49 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-20 21:36 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-20 21:36 -------
Subject: Bug 15575
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bryce@gcc.gnu.org 2004-10-20 21:36:48
Modified files:
gcc : ChangeLog configure.ac aclocal.m4 configure
config.in
Log message:
2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
PR java/15575
* configure.ac: Declare AM_LANGINFO_CODESET.
* aclocal.m4: Define AM_LANGINFO_CODESET.
* configure, config.in: Rebuilt.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5960&r2=2.5961
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&r1=2.77&r2=2.78
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/aclocal.m4.diff?cvsroot=gcc&r1=1.98&r2=1.99
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&r1=1.868&r2=1.869
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.in.diff?cvsroot=gcc&r1=1.199&r2=1.200
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-10-20 21:36 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-20 21:38 ` mckinlay at redhat dot com
2004-11-06 15:49 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: mckinlay at redhat dot com @ 2004-10-20 21:38 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-10-20 21:38 -------
Fix checked in.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/15575] HAVE_LANGINFO_CODESET never defined
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-10-20 21:38 ` mckinlay at redhat dot com
@ 2004-11-06 15:49 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-06 15:49 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15575
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-11-06 15:49 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-21 21:03 [Bug java/15575] New: HAVE_LANGINFO_CODESET never defined tromey at gcc dot gnu dot org
2004-05-21 21:19 ` [Bug java/15575] " pinskia at gcc dot gnu dot org
2004-05-22 7:48 ` pinskia at gcc dot gnu dot org
2004-05-24 21:35 ` bonzini at gnu dot org
2004-06-30 15:57 ` bonzini at gnu dot org
2004-10-20 17:52 ` mckinlay at redhat dot com
2004-10-20 17:59 ` jsm at polyomino dot org dot uk
2004-10-20 18:03 ` tromey at gcc dot gnu dot org
2004-10-20 18:10 ` mckinlay at redhat dot com
2004-10-20 21:36 ` cvs-commit at gcc dot gnu dot org
2004-10-20 21:38 ` mckinlay at redhat dot com
2004-11-06 15:49 ` 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).