| Summary: | [patch] Encoding support in java/jikes nonfunctional | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Juha-Matti Tilli <juhis> | ||||
| Component: | Individual Port(s) | Assignee: | Archie Cobbs <archie> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-ports-bugs->archie Over to maintainer State Changed From-To: open->closed Patch applied. |
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