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 215233 - Editor can misinterpret and corrupt Unicode file content following '\'
Summary: Editor can misinterpret and corrupt Unicode file content following '\'
Status: RESOLVED DUPLICATE of bug 219545
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-06 15:59 UTC by rjksmith
Modified: 2012-10-16 15:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rjksmith 2012-07-06 15:59:51 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Mac OS X version 10.7.4 running on x86_64
Java; VM; Vendor = 1.6.0_33
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.8-b03-424

I am attempting to edit Unicode-based files, in this case Java ME property files for localisation. My files include the '\' character (not '/') followed by a Unicode character, which appears to be misinterpreted by the editor.

I understand that the underlying text files, e.g. message.properties, use the '\uxxxx' notation for Unicode characters and the problem occurs if a Unicode character is immediately preceded by '\', i.e. '\\uxxxx', which confuses the editor. I have found a partial workaround by editing the relevant files in another (non-NetBeans) editor and using '\u005c' to represent '\'. However, the problem recurs as the NetBeans editor will invisibly replace '\u005c' with '\' and expose the error again.

I believe that the error is in the NetBeans' editor's handling of '\\uxxxx'. Please advise.
Comment 1 Milutin Kristofic 2012-10-16 15:18:06 UTC

*** This bug has been marked as a duplicate of bug 219545 ***