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.
Summary: | Bad handling of \u000a (new line) | ||
---|---|---|---|
Product: | utilities | Reporter: | rloschmann <rloschmann> |
Component: | Properties | Assignee: | Marian Petras <mpetras> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | mmirilovic, sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
source code patch for NB 6.5
source code patch (to be verified) |
Description
rloschmann
2008-10-22 15:02:59 UTC
NB 5.5.x: TEXT EDITOR -- works correctly: Dialogue.Chargement.Fichier=The file:\u000a{0}\u000ais not a valid database file TABLE EDITOR -- Unicode-sequences are skipped, i.e. sequences \u000a are not displayed: | Dialogue.Chargement.Fichier | The file:{0}is not a valid database file | When the user clicks inside the cell with the value to start editing it, only "{0}" is displayed. It is not possible to modify the value by editing the cell contents. NB 6.0, NB 6.1, NB 6.5 RC1: Both the plain text editor and the table editor are badly broken - they interpret the \u000a sequences as if there was a real new-line character. TEXT EDITOR: Dialogue.Chargement.Fichier=The file: {0} is not a valid database file TABLE EDITOR: | Dialogue.Chargement.Fichier | The file: | | {0} | | | is | not a valid database file | I can simply change the behaviour to that of NB 5.5.x - see the attached source code patch. Created attachment 72488 [details]
source code patch for NB 6.5
This isn't stopper for NB 6.5 - we can fix it into the patch 1 - if all agree. I just committed (pushed) the patch. Changeset Id: f6a1fcd62456 (http://hg.netbeans.org/main/rev/f6a1fcd62456) Integrated into 'main-golden', will be available in build *200810240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f6a1fcd62456 User: Marian Petras <mpetras@netbeans.org> Log: partially fixed bug #151026 - "Bad handling of \u000a (new line)" - behaviour changed back to that of NB 5.5.x Mariane, this issue seems to be fixed. Would you please update about it's resolution status? It is "fixed" by making it work the same as it works in NB 5.5. I am just working on a proper fix. The issue didn't pass the nomination process by nomination cut-off date. It has been marked as 65fixes2-candidate. Created attachment 74432 [details]
source code patch (to be verified)
I added a second patch. The first patch just reverts the behaviour to the pre-6.0 times, the second patch (to be applied in addition to the first patch) further improves editing of strings with Unicode sequences. When verifying this bug, please also verify that bug #98512 is still fixed. *** Issue 154524 has been marked as a duplicate of this issue. *** I've integrated attached fix into trunk Changeset id: 918b988098b8 The line: Dialogue.Chargement.Fichier=The file:\u000a{0}\u000ais not a valid database file looks ok in properties editor and properties table editor. Product Version: NetBeans IDE Dev (Build 200812150750) Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22 The fix was ported into release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/029aa89054c3 http://hg.netbeans.org/release65_fixes/rev/ede4bf93b77e re-verified with 65patch2 |