This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: solaris2 libjava 500 failures
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: solaris2 libjava 500 failures
- From: Tom Tromey <tromey at redhat dot com>
- Date: 25 Apr 2001 22:30:18 -0600
- Cc: aoliva at redhat dot com, gcc-bugs at gcc dot gnu dot org, java at gcc dot gnu dot org
- References: <200104252209.SAA16009@caip.rutgers.edu>
- Reply-To: tromey at redhat dot com
>>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:
Kaveh> I'm also still getting some encoding problems from jv-scan:
Here's a new improved patch which addresses that problem.
Back out the old patch and try this one.
It still won't solve your linking problems :-(
2001-04-25 Tom Tromey <tromey@redhat.com>
* lib/libjava.exp (libjava_init): Use UTF-8 encoding.
(test_libjava_from_javac): Likewise.
Tom
Index: lib/libjava.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/lib/libjava.exp,v
retrieving revision 1.22.4.2
diff -u -r1.22.4.2 libjava.exp
--- libjava.exp 2001/04/02 23:37:09 1.22.4.2
+++ libjava.exp 2001/04/26 04:19:57
@@ -127,6 +127,9 @@
}
}
+ # Always set encoding used by gcj.
+ append GCJ_UNDER_TEST " --encoding=UTF-8"
+
if [info exists env(LD_LIBRARY_PATH)] {
set original_ld_library_path $env(LD_LIBRARY_PATH)
} else {
@@ -501,15 +504,18 @@
# Find name to use for --main, and name of all class files.
set jvscan [find_jvscan]
verbose "jvscan is $jvscan"
+ # We insulate ourselves from the user's locale by forcing the
+ # encoding on jvscan.
+ set jvscan "compiler=$jvscan additional_flags=--encoding=UTF-8"
set main_name [string trim \
[prune_warnings \
[libjava_tcompile $srcfile "" none \
- "compiler=$jvscan additional_flags=--print-main"]]]
+ "$jvscan additional_flags=--print-main"]]]
verbose "main name is $main_name"
set class_out [string trim \
[prune_warnings \
[libjava_tcompile $srcfile "" none \
- "compiler=$jvscan additional_flags=--list-class"]]]
+ "$jvscan additional_flags=--list-class"]]]
verbose "class list is $class_out"
if {[string match "*parse error*" $main_name]