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 127060 - Character drives the editor crazy
Summary: Character drives the editor crazy
Status: CLOSED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2008-02-09 14:27 UTC by pupeno
Modified: 2011-06-09 09:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshop showing the problem (23.79 KB, image/png)
2008-02-11 19:50 UTC, pupeno
Details
(Compressed, to avoid mangling) file showing the problematic charater. (155 bytes, application/x-gzip)
2008-02-11 19:52 UTC, pupeno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pupeno 2008-02-09 14:27:14 UTC
This character "ĝ" when in a string drives the editor crazy. It shows hundreds of spaces and then weird characters.

Thank you.
Comment 1 Jiri Prox 2008-02-11 09:14:18 UTC
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?
Comment 2 Vitezslav Stejskal 2008-02-11 09:57:45 UTC
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
Comment 3 pupeno 2008-02-11 19:49:45 UTC
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
Comment 4 pupeno 2008-02-11 19:50:37 UTC
Created attachment 56481 [details]
Screenshop showing the problem
Comment 5 pupeno 2008-02-11 19:52:53 UTC
Created attachment 56482 [details]
(Compressed, to avoid mangling) file showing the problematic charater.
Comment 6 Jiri Prox 2008-02-12 07:05:20 UTC
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
Comment 7 Vitezslav Stejskal 2008-02-12 10:40:06 UTC
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.
Comment 8 Vitezslav Stejskal 2008-02-25 10:33:36 UTC
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.
Comment 9 pupeno 2008-02-25 12:56:22 UTC
I've never tried an Early Access, so I'm not sure I'll be able to test, but I trust you.
Comment 10 Vitezslav Stejskal 2008-02-25 13:45:46 UTC
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
Comment 11 Marian Mirilovic 2011-06-09 09:56:55 UTC
v/c