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 168629 - [68cat] Properties file editor should save Unicode escapes with lowercase hex digits
Summary: [68cat] Properties file editor should save Unicode escapes with lowercase hex...
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 16:30 UTC by matthies
Modified: 2010-05-14 02:35 UTC (History)
0 users

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 matthies 2009-07-15 16:30:07 UTC
The properties file editor saves Unicode escapes using uppercase hex digits. This is different from the native2ascii 
JDK tool and from Eclipse and I believe from IntelliJ IDEA too, which generate lowercase hex digits. This discrepancy 
creates problems with diffs and version control, as all lines containing Unicode escapes with hex digits are considered 
changed, although only the case of the hex digits has changed. For example you can get a lot of false merge conflicts 
when a properties file is edited by both a NetBeans and an Eclipse user, or results from an ascii2native conversion. 
Therefore NetBeans should use lowercase hex digits too when writing properties files.
Comment 1 Victor Vasilyev 2009-09-17 22:34:55 UTC
The only IDE you need :-)

It is not a bug, but, of course, it is valid issue.

BTW I've tried the native2ascii converter. Seems it uses 
HexDigit: one of
        0 1 2 3 4 5 6 7 8 9 A B C D E F
but not
HexDigit: one of
        0 1 2 3 4 5 6 7 8 9 a b c d e f

I think, an option "Hex Digits: UPPER CASE/lower case" should be added to the Properties Editor.
Comment 2 matthies 2009-09-18 16:23:49 UTC
JDK 1.6's native2ascii converts to lower case:

$ echo '\u00AB' | native2ascii -reverse | native2ascii
\u00ab

This was run under a Latin 1 native locale.
Comment 3 Victor Vasilyev 2010-05-14 02:35:37 UTC
Fixed in the main trunk
http://hg.netbeans.org/main/rev/5a77df7c1045