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.
This character "ĝ" when in a string drives the editor crazy. It shows hundreds of spaces and then weird characters. Thank you.
I've tried to copy paste the character from here to editor, but nothing was wrong. Maybe the encoding of web changed something. Can you attach the source file? How it encoding of your project set?
Could you please take a screenshot and attach it here? Also please tell us more about your environment - OS, window manager, versions of java and netbeans, etc. Is it really related to typing in the editor? Thanks
I upgraded to 6.0.1 and the symptom is different. I'm running NetBeans 6.0.1 on Ubuntu 7.10: $ uname -a Linux silver 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686 GNU/Linux $ java -version java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode) $ Xorg -version X Window System Version 1.3.0 Release Date: 19 April 2007 X Protocol Version 11, Revision 0, Release 1.3 Build Operating System: Linux Ubuntu (xorg-server 2:1.3.0.0.dfsg-12ubuntu8.3) Current Operating System: Linux silver 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686 Build Date: 18 January 2008 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present
Created attachment 56481 [details] Screenshop showing the problem
Created attachment 56482 [details] (Compressed, to avoid mangling) file showing the problematic charater.
Thanks, now I can reproduce it. Just for completing the bug report: The file is in UTF-8, the problematic char is "LATIN SMALL LETTER G WITH CIRCUMFLEX" http://www.fileformat.info/info/unicode/char/011d/index.htm
I did some experiments with java notepad (eg. java -jar $JAVA_HOME/demo/jfc/Notepad/Notepad.jar) and found out that it does not work there either. The behavior is different between JDK5 and JDK6 - in JDK5 when typing the char the rest of the line disappears; in JDK6 the character is shown, but the caret moves backward, so typing the char again places it at the same position resulting in several characters written on top of each other (visually only one can be seen). Native editors (eg. gedit) seems to handle the character correctly. My guess is that there is something wrong in the definition of the character in JDK, which makes swing editors draw it in a wrong direction. I'm not sure how much we can do about it in Netbeans. I'll search through JDK bugs to see if this has already been filed. Thanks for the attachments.
I have good news. The issue seems to be fixed in JDK6 Update 10 (Early Access). I tried it in both java Notepad and Netbeans running on JDK6u10 and I could enter the character without problems. You can download early access builds from http://download.java.net/jdk6/. I'm closing this issue as WONTFIX as it apparently is not a Netbeans issue. Could you please confirm that Update 10 fixes the issue for you? Thanks.
I've never tried an Early Access, so I'm not sure I'll be able to test, but I trust you.
Fair enough, I am sure some of our quality engineers will double check that. I just wanted to point out that you could run Netbeans on JDK version where this issue is fixed. I've been using JDK6u10 for several weeks in my everyday work and had no issues with it. But I understand if you are reluctant trying out early access builds. :-) Cheers
v/c