solaris2 libjava 500 failures

Tom Tromey tromey@redhat.com
Wed Apr 25 21:20:00 GMT 2001


>>>>> "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]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /