Bug 89536 - [patch] Encoding support in java/jikes nonfunctional
Summary: [patch] Encoding support in java/jikes nonfunctional
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Archie Cobbs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 16:00 UTC by Juha-Matti Tilli
Modified: 2005-11-27 16:55 UTC (History)
0 users

See Also:


Attachments
file.diff (360 bytes, patch)
2005-11-25 16:00 UTC, Juha-Matti Tilli
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juha-Matti Tilli 2005-11-25 16:00:14 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-25 16:03:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->archie

Over to maintainer
Comment 2 Archie Cobbs freebsd_committer freebsd_triage 2005-11-27 16:55:10 UTC
State Changed
From-To: open->closed

Patch applied.