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.
1)Open a property file that contains localized characters in the property editor. 2)Right-click the upper folder that holds the property file and select [Find...] from the menu. 3)Use [Substring searching] to find a localized value which exists in the property file. 4)Find No matches. 5)This happens in ja&zh_CN locale.
Make sure to add "I18N" keyword when you report i18n bug.
I think this is a problem in search module. So I've changed category to utilities. 1. The current search module is look for the string only in default properties file (e.g. test.properties). When I want to search keyword in not default locale properties file (e.g. test_ja.properties), nothing can be found. 2. Even when I enter multibyte characters in default properties file (e.g. test.properties), multibyte characters can not be found because they are save as unicode escape "\uXXXX".
Keiichi Oono evaluated it correctly - there are exactly the two problems he/she described. The first problem (searching only properties file for the default locale) is a bug, indeed, and should definitely be fixed. It is already tracked as a bug #26705 - "Find tool does not work with localized properties files". As regards the second problem: It is not a requirement for the Search submodule to apply filters to certain types of objects/files. Nevertheless, it is necessary for proper searching of non-English properties files. So I change this issue's type from DEFECT to a high priority FEATURE (the other way would be to close this defect as invalid and create a new feature request record in IssueZilla for this issue).
added i18n to synopsis - this helps in our i18n issue tracking - I realize it has i18n keyword but having in synopsis is more helpful now ken.frank@sun.com 10/06/2003
Implementation and use of the specific encoding for .properties files (issue #97861) resolved also this issue. Note that issue 26705 ("Find tool does not search localized properties files") is still pending. Modified files: ide/golden/deps.txt (1.543) properties/manifest.mf (1.69) properties/nbproject/project.xml (1.12) properties/src/org/netbeans/modules/properties/: Bundle.properties (1.76) PropertiesDataLoader.java (1.29) PropertiesDataObject.java (1.55) PropertiesEditorSupport.java (1.88) PropertiesEncoding.java (1.1 - new) properties/test/unit/src/org/netbeans/modules/properties/: PropertiesEncodingTest.java (1.1 - new) Diffs: http://ide.netbeans.org/source/browse/ide/golden/deps.txt?r1=1.542&r2=1.543&diff_format=u http://properties.netbeans.org/source/browse/properties/manifest.mf?r1=1.68&r2=1.69&diff_format=u http://properties.netbeans.org/source/browse/properties/nbproject/project.xml?r1=1.11&r2=1.12&diff_format=u http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/Bundle.properties?r1=1.75&r2=1.76&diff_format=u http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesDataLoader.java?r1=1.28&r2=1.29&diff_format=u http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesDataObject.java?r1=1.54&r2=1.55&diff_format=u http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesEditorSupport.java?r1=1.87&r2=1.88&diff_format=u http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesEncoding.java?rev=1.1&content-type=text/vnd.viewcvs-markup http://properties.netbeans.org/source/browse/properties/test/unit/src/org/netbeans/modules/properties/PropertiesEncodingTest.java?rev=1.1&content-type=text/vnd.viewcvs-markup
verified using nb6 - the actual multibyte is found. however, searching for the escapped acscii in the actual property text file is not found by find. is it expected that the escapped ascii characters should be found by a full text search ? ken.frank@sun.com
I do not fully understand your question. I assume that the user does not see any escaped characters until they enter them themselves. Even if the user enters an escaped character to a .properties file, the next time the file is opened, it is displayed as a real character, not in form \uxxxx. Even if the user enters a character in the \uxxxx form, the Find feature will read it as a real character (i.e. not as the \uxxxx sequence) and the user should enter an actual character to the Find dialog. If the user is not able to enter the actual character to the Find dialogue and prefers specifying the character by the corresponding Unicode value, it is possible, but only when searching with the Regular Expression check-box selected, i.e. if the text to be found is expressed with a regular expression. The \uxxxx syntax works in this case (as specified at http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html). If you think that the user should be allowed to specify characters in the \uxxxx form (even with the Regular Expression check-box unchecked), please file a separate issue.