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 - I18N : Japanese text are garbled on output window when Compile on Save option is ON
Summary: I18N : Japanese text are garbled on output window when Compile on Save option...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Jan Jancura
URL: http://blogs.sun.com/katakai/resource...
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2009-04-30 07:37 UTC by Masaki Katakai
Modified: 2009-05-11 11:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.