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 124426 - I18N : Use lowercase characters in unicode ascii at storing .properties file - plugin available
Summary: I18N : Use lowercase characters in unicode ascii at storing .properties file ...
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Jan Peska
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-12-25 02:41 UTC by Masaki Katakai
Modified: 2016-02-13 13:14 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2007-12-25 02:41:19 UTC
NetBeans uses  uppercase character when it stores unicode ascii into .properties file.
It's defined and hardcoded.

properties/src/org/netbeans/modules/properties/PropertiesEncoding.java
        private static final byte[] hexadecimalChars
                = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
 
However, I understand using lowercase characters is common and widely used.
JDK's native2ascii is using lowercase characters to represent unicode ascii and
some other tool (OmegaT) is using lowercase too.

Please use lowercase at generating .properties files. I noticed it's very hard to
get actual diffs when I use version control. Actual (native) characters are not updated
but I got many differences from entire file due to the lowercase -> uppercase conversion.
Comment 1 Marian Petras 2008-01-11 14:56:53 UTC
This request is in contrast with the request to keep using uppercase letters (issue #117416) I fixed in the October.

I do not know what to do with it at the moment. Let me know if you have any idea.
Comment 2 Ashizawa Kazunori 2008-01-17 02:27:17 UTC
How about adding a configuration option for lowercase/uppercase?
Comment 3 Marian Petras 2008-01-23 22:34:43 UTC
Yes, it is doable. But not for NB 6.1 as it would require a UI change. NB 6.1 is mostly a bugfix release and UI changes
are generally accepted unless they are necessary for fixing of serious issues.
Comment 4 markiewb 2013-10-26 00:18:40 UTC
In the meantime I created a simple plugin which can at least convert the \uxxXX unicode chars in an existing property file to lower-/upper-case. Not nice but it does its job.

http://plugins.netbeans.org/plugin/51298/?show=true