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.
I use NetBeans IDE 6.5 (Build 200811100001). For example, we have next comments at any java class: [code] // This is a text for Latin letters search = Font222 and font222 // This is a text for Cyrillic letters search = Фонт222 и фонт222 [/code] When we try to search for “Font222”, we get back two matches lines: one for “Font222” and second for “font222”. When we try to search for “Фонт222”, we get back just one match line, exactly for “Фонт222”. Similar situation is for the lower case letter search. I think the same situation will be for other non-Latin letters.
What version of JDK (and what OS) do you use? (copy/paste info from Help>About here) Might be a bug in JDK...
Here is the info (sent to my e-mail): Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
I think I know the cause of this bug. In file BasicSearchCriteria.java there is a method compileSimpleTextPattern(). It contains the following lines: ... int flags = 0; if (!caseSensitive) { flags |= Pattern.CASE_INSENSITIVE; } ... It should be ... int flags = 0; if (caseSensitive) { flags |= Pattern.UNICODE_CASE; } else { flags |= Pattern.CASE_INSENSITIVE; } ...
Fixed in the trunk.
Integrated into 'main-golden', will be available in build *200901120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/eb9f9fb4c7b4 User: Andrey Yamkovoy <kaktus@netbeans.org> Log: Fix for #155292 - ?Find in Projects? omits Upper/Lower case Cyrillic letters
verified: Product Version: NetBeans IDE Dev (Build 200901160201) Java: 1.6.0_06; Java HotSpot(TM) Server VM 10.0-b22 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)