ports/89536: [patch] Encoding support in java/jikes nonfunctional

Juha-Matti Tilli juhis at nallukka.net
Fri Nov 25 16:00:17 UTC 2005


>Number:         89536
>Category:       ports
>Synopsis:       [patch] Encoding support in java/jikes nonfunctional
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 25 16:00:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Juha-Matti Tilli
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD tykki.juhis.ath.cx 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Mon Nov 7 19:10:58 EET 2005 root at tykki:/usr/obj/usr/src/sys/TYKKI i386

jikes-1.22
libiconv-1.9.2_1

>Description:

When the -encoding switch is used, jikes accepts only ascii characters. It
seems that libiconv isn't able to convert non-ascii characters to wchar_t.

>How-To-Repeat:

% cat > test.java
public class test {
	public static void main(String[] args) {
		System.out.println("åäö");
	}
};
% jikes -encoding iso8859-1 test.java
Charset conversion error at offset 87: Illegal byte sequence
Charset conversion error at offset 87: Illegal byte sequence

Found 1 lexical error in "test.java":

		 3.     System.out.println("
															 ^
*** Lexical Error: String constant not properly terminated.

Found 4 syntax errors in "test.java":Charset conversion error at offset 87: Illegal byte sequence


		 3.     System.out.println("
															^^
*** Syntax Error: ")" inserted to complete Arguments


		 3.     System.out.println("
						^------------------^
*** Syntax Error: ";" inserted to complete BlockStatements


																								 <
		 2.   public static void main(String[] args) {
		 3.     System.out.println("
				----------------------->
*** Syntax Error: "}" inserted to complete MethodBody


													<
		 1. public class test {
	 . . .
		 3.     System.out.println("
				----------------------->
*** Syntax Error: "}" inserted to complete ClassBody

>Fix:

--- configure.orig      Sun Oct  3 23:44:54 2004
+++ configure   Fri Nov 25 17:18:30 2005
@@ -5940,12 +5940,10 @@
 
 
 
-list=wchar_t
-
 if test $ac_cv_sizeof_wchar_t -eq 4; then
-  list="$list ucs4 utf32 ucs-4 utf-32 UCS-4"
+  list="ucs4 utf32 ucs-4 utf-32 UCS-4"
 else
-  list="$list ucs2 utf16 ucs-2 utf-16 UCS-2"
+  list="ucs2 utf16 ucs-2 utf-16 UCS-2"
 fi


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list