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 115203 - I18N - Output window doesn't show i18n'ed characters.
Summary: I18N - Output window doesn't show i18n'ed characters.
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-09-11 02:07 UTC by Jun Qian
Modified: 2007-10-04 16:30 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output window I18N Problem (42.29 KB, application/octet-stream)
2007-09-11 02:08 UTC, Jun Qian
Details
screenshot (207.88 KB, image/png)
2007-10-04 08:46 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jun Qian 2007-09-11 02:07:35 UTC
See attachment.
Comment 1 Jun Qian 2007-09-11 02:08:10 UTC
Created attachment 48537 [details]
Output window I18N Problem
Comment 2 Milos Kleint 2007-09-11 05:01:35 UTC
might not be output window related. Possibly ant (or some other source of output) doesn't handle i18n'ed chars in this
particular case
Comment 3 Jesse Glick 2007-09-13 22:52:43 UTC
Probably dependent on both project type (~ build script) and operating system. If not reproducible on a Linux system
using UTF-8 system encoding, probably need to close as WONTFIX - I have tried and failed to get XP to properly handle
non-ASCII characters in stdio.
Comment 4 Ken Frank 2007-09-19 15:55:17 UTC
what output is not being shown correctly ? what are the user actions and steps ?

ken.frank@sun.com
Comment 5 Jun Qian 2007-09-21 03:26:04 UTC
To reproduce:

    1. Create a SOA SynchronousSample 
    2. Deploy SynchronousSampleApplication
    3. Rename the default test case to something containing i18n'ed characters
    4. Run the test case


In the attached screenshot, there are three test cases (TestCase0, ...) in the project three. After running all three
test cases, the output window shows "??" instead of the i18n'ed test case names.
Comment 6 Jun Qian 2007-09-21 03:29:49 UTC
I just realized that there has never been a requirement to i18n-ize strings defined in NetBeans' ant tasks. I guess we
don't support i18n in ant task output?
Comment 7 Ken Frank 2007-09-21 15:16:27 UTC
 but I think in general its true that what comes from ant is not translated.
I think there are some msgs that are seen in ow as result of compiling that are but many are not.
(Jesse can comment with more accuracy about this)

But for this issue, I am wondering if still the multibyte characters themselves should be shown ok, especially if
the same encoding for the characters are that of the project, which in this case it is, so its not a situation
that would require encoding detection, at least within the ide.

ken.frank@sun.com
Comment 8 Milos Kleint 2007-10-04 08:45:38 UTC
I tried to print chinese chars directly to output window to a module without a problem. 

when running a test with System.out in chinese on macosx I get ?? chars for output but correct chars in exception
stacktrace. The project was setup to use UTF-8 BTW.

This leads me to assume the problem is somewhere in the ant output processing. 
Comment 9 Milos Kleint 2007-10-04 08:46:32 UTC
Created attachment 50162 [details]
screenshot
Comment 10 Milos Kleint 2007-10-04 08:47:58 UTC
I've run the test on my macosx machine which has Macroman encoding as default btw. The project was setup to use UTF-8.
Comment 11 Jesse Glick 2007-10-04 16:30:24 UTC
System.out is a bytestream. There is necessarily a conversion from chars to bytes done when text is printed, which is
beyond the control of NB or Ant AFAIK. If you want to use international characters in text I/O, you had better use an OS
in which UTF-8 is the universally used encoding, e.g. modern Linux distributions. I can't speak for Mac OS X, but I have
tried in the past to get this to work in Windows XP even without an IDE, to no avail.