This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 164143

Summary: I18N : Japanese text are garbled on output window when Compile on Save option is ON
Product: java Reporter: Masaki Katakai <masaki>
Component: ProjectAssignee: Jan Jancura <jjancura>
Status: RESOLVED FIXED    
Severity: blocker CC: jf4jbug, mvanek
Priority: P3 Keywords: I18N
Version: 6.x   
Hardware: PC   
OS: All   
URL: http://blogs.sun.com/katakai/resource/nb67_outputwin_issue.htm
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2009-04-30 07:37:40 UTC
NB: 6.7 Beta
OS: Windows XP (Japanese) - Windows using ShiftJIS encoding by default
JDK: 1.6.0_13
Project encoding: default(UTF-8)

When I run the simple program that just outputs Japanese text,
the text are garbled on Output window. It seems that it happens
when Compile on Save option is ON.

Screen capture:

http://blogs.sun.com/katakai/resource/nb67_outputwin_issue.htm

What I did:

1. Change string from "abc" to "<japanese text>" on editor
2. Run it
   Dialog is invoked and it complains. I don't know why.
3. 2nd try
   Now it's OK. You can find the same text on editor and output window.
4. Just add `a' like "<japanese text>a"
5. Run it
   garbled.
6. Run it again.
   OK.
7. Change the string again and run it
   garbled.

8. Turn Compile on Save option to off
9. Run again
   it's always OK
Comment 1 Masaki Katakai 2009-04-30 07:41:53 UTC
This issue does not happen on NB6.5.1.
Comment 2 Jan Jancura 2009-04-30 13:14:03 UTC
Looks like javac does not have right info about coding with CoS.
Comment 3 Jan Jancura 2009-05-11 11:42:52 UTC
Fixed in current trunk version of NetBeans.