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 89745 - I18N: problem with saving non-latin names in project
Summary: I18N: problem with saving non-latin names in project
Status: VERIFIED INVALID
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-11-21 13:11 UTC by Sergey Petrov
Modified: 2007-02-15 17:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
??? sample (116.04 KB, image/png)
2006-11-21 13:25 UTC, Sergey Petrov
Details
no problem with work in project tree/diagram/documentation (112.42 KB, image/png)
2006-11-22 10:59 UTC, Sergey Petrov
Details
same project after restart, should it be P1? (105.54 KB, image/png)
2006-11-22 11:00 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2006-11-21 13:11:47 UTC
reproducible with 061120, winXP

steps:
1. create project
2. add package with russian name (for example 'пакет') and scoped diagram with
russian name (for example 'диаграмма')
3. add class to the diagram
4. name class 'класс'
5. add attribute with name 'аттрибут'
6. add operation with name 'операция'
7. restart ide
8. all names are replaced with '??????'
Comment 1 Sergey Petrov 2006-11-21 13:25:04 UTC
Created attachment 36167 [details]
??? sample
Comment 2 Ken Frank 2006-11-21 16:50:15 UTC
Sergey,

Can Russian characters be used and seen properly in other parts of nb -
like explorer window for a java project with Russian in class names,
proj names, etc ?

Can Russian be typed into other parts of nb ?

Can it be typed directly into the drawing area of the diagram elements and show ok ?

Can it be pasted instead ?

--> If can be pasted but not input directly, and thus the Russian shows
ok then, then this is duplicate of other such bugs on uml.

ken.frank@sun.com
Comment 3 Sergey Petrov 2006-11-22 10:51:46 UTC
In Java Project:
1) I can add package with Cyrillic symbols in project tree without any problems,
restart do not corrupt name
2) I can work(type, save, reload) in java editor if set default encoding for
java editor to 'utf8'
3) I can compile with appropriate encoding option
4) Properties window/properties is ok (may be with appropriate encoding setting)
But:
1) If leave encoding setting empty, source is corrupted after creation (with a
lot of '????' (but in project tree file is correct)
2) I saw problems in output window (not '???' but looks like symbols from upper
part of latin character set) if there is any errors in compilation, I don't know
if bug have already filed.

In UML project:
1) I can work with russian characters until restart without problems in project
tree and in digram area (type directly).
2) Even report is generated correctly
3) and I can paste(I tried to paste name in class and text in documentation)
But:
After restart all names are replaces with '?'
Comment 4 Sergey Petrov 2006-11-22 10:59:07 UTC
Created attachment 36200 [details]
no problem with work in project tree/diagram/documentation
Comment 5 Sergey Petrov 2006-11-22 11:00:15 UTC
Created attachment 36201 [details]
same project after restart, should it be P1?
Comment 6 Ken Frank 2006-11-22 15:14:07 UTC
Sergey,

Thanks for the additional information.

And its very helpful that you did the restart 
since that helps show that it can be the encoding
handling when writing the data on exit is where
the problem might be or that its on the reading
of the data after restart.

as to your comments about working in java editor,etc  and non uml,
I'd like to follow up separately, since if one is in a certain
locale, one should not need to set the encoding of the editor
or otherwise to be able to see properly the characters of that locale.
What locale are you in when you start the ide ?  And does it happen on
solaris also ?  Please send me separate mail so we don't put info
on that into this issue, which is just about uml.

ken.frank@sun.com

Comment 7 Yang Su 2007-01-04 18:54:49 UTC
Just like issue 78633, we need to define our i18n requirement first and test
against the valid spec accordingly.

Unlike many popular communication tools (e.g Thunderbird, Instant Messenger), NB
is meant to be used by a single user under one particular locale, it uses system
encoding to read and write characters. So, if you want to save project name in
particular encoding you need to run IDE under that locale, supporting
multi-language input/output is not a current requirement.

I tested on WinXP with Asian locales, UML project name (along with package,
element name) in multibyte characters is saved and retrieved properly upon IDE
restart. 

On a side note, UML module has no control over NB Project read/write encoding
mechanism, it's a common behavior across IDE.
Comment 8 Yang Su 2007-01-18 18:23:11 UTC
In an effort to clean up dashboard, I'm closing this bug as "invalid", please
test i18n features with IDE running in that specific locale.
Comment 9 Ken Frank 2007-02-15 17:36:15 UTC
verifying even though its marked as invalid to get off dashboard.

ken.frank@sun.com