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 116047 - [60cat][I18N] internationalization problem with persian language
Summary: [60cat][I18N] internationalization problem with persian language
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-09-19 18:13 UTC by azizi
Modified: 2008-08-07 14:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error show (104.80 KB, image/jpeg)
2007-09-19 18:17 UTC, azizi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description azizi 2007-09-19 18:13:46 UTC
I found that typing some characters in persian language is not correct.
I think this problem is from some wrong codepage keys assignment to characters.
As you can see in attached picture some characters with a red line below them are wrong
and you can see right one of them with green color.

* There is no such a problem with windows OS, i see it in linux kubuntu and ubuntu.
** As you see in attached picture i have not such problem with Kate and other non java editors in linux.
   so problem is exist only in java in linux.
Comment 1 azizi 2007-09-19 18:17:06 UTC
Created attachment 49099 [details]
error show
Comment 2 Ken Frank 2007-09-19 18:40:46 UTC
this might be related to known situation in general that jdk does not have font props customized for ubuntu;
we see this in using japanese and chinese characters.

I am guessing that since its ok on windows, that it might be this, rather than situation
with handling of rtl languages; although there are known issue for rtl languages.

I'll try to find some info on how to install ubuntu's own jdk and send it, to see if that might help;
it has helped to some extent with japanese and chinese characters.

for example, see http://wiki.netbeans.org/wiki/view/FaqI18nLinuxAsianFonts
there is one pointer to info on ubuntu 6, but not for 7; I will look for that info.

if problem is about the jdk being used, we can update this faq page.

ken.frank@sun.com
Comment 3 Vitezslav Stejskal 2007-09-21 11:07:46 UTC
Could you please try reproducing this problem with Java Notepad application? You can launch it from commandline such as:
java -jar $JAVA_HOME/demo/jfc/Notepad/Notepad.jar

If the problem exists even in the Notepad application, than it's most likely JDK issue or configuration problem. Thanks
Comment 4 pribyl 2008-04-25 13:31:54 UTC
Closing this - not enough info.

Azizi, if you are still experiencing this problem, please reopen and add some additional info that could help (please
try the Notepad as vstejskal suggests)

Thank you
Comment 5 azizi 2008-04-25 14:39:38 UTC
Ok, in ubuntu i can not find notepad.jar but i write a simple java application with text field and text area.
i do not have such a problem with them, so problem is exist only in netbeans editor.
so jdk have not any problem, I think.
the only different i see between netbeans editor and text field control is their fonts.
so maybe it all about a font problem.
how can i change the netbeans editor font to test it? 
Comment 6 Jiri Prox 2008-04-25 16:57:39 UTC
The font can be changed in Tools-> Options-> Fonts&Colors -> Syntax
Comment 7 Ken Frank 2008-04-25 17:09:12 UTC
azizi

does it happen if project uses utf-8 (default) project encoding
and also another project with encoding of the locale you are in 
(which I am assuming is a persian locale ) ?

what is the locale name that you are running in also ?

ken.frank@sun.com
Comment 8 azizi 2008-05-01 19:27:22 UTC
it seems the problem is about fonts.
the default monospace font have not some Persian characters.
so when i select another font, problem solved.
 
Comment 9 Jan Becicka 2008-08-07 14:23:41 UTC
Font issue.