Bug in search - Match Case unchecked not working for Russian code page

Find, replace, find in files, replace in files, regular expressions

Bug in search - Match Case unchecked not working for Russian code page

Postby MAN-biker » Mon Nov 28, 2011 1:14 pm

I think, I've found a bug in search algorithm at all latest releases of UE, including v17.30.0.1002.

Example.
I have a letter "Я" (Russian code page) and try to find "я" (Match Case checkbox is OFF), but UE cant find it.
The same is if I want to find lower case "я" by using UPPER case "Я" and with ANY Russian alphabet.
In short: Match Case option in "find/replace" doesn't work with Russian code page (may be other than Latin, I have not check other than Russian).

PS: Sorry for my broken English.
MAN-biker
Newbie
 
Posts: 1
Joined: Mon Nov 28, 2011 1:00 pm

Re: Bug in search - Match Case unchecked not working for Russian code page

Postby sklad2 » Mon Nov 28, 2011 1:31 pm

I see this problem also in 17.30.0.1002. I have a Unicode file with Russian letters and when I search for them, they are not found.
User avatar
sklad2
Advanced User
Advanced User
 
Posts: 59
Joined: Thu Mar 08, 2007 12:00 am

Re: Bug in search - Match Case unchecked not working for Russian code page

Postby Mofi » Tue Nov 29, 2011 1:11 am

I can confirm this issue as well. The Russian character is not searched case insensitive within a Unicode or ANSI file using code page 1251 with UE v17.30.0.1002 on Windows XP SP3 x86. Word 2007 on same computer finds 'Я' and 'я' when searching not case sensitive for 'Я' or 'я'.

Interesting is what is displayed in the title bar of message box opened when the search does not find the character anymore until end of file (with Continue find at End of File unchecked). With a Unicode file the message box title is:

Search string '?' not found.

With an ANSI file using code page 1251 the message box title is:

Search string 'ß' not found.

The character 'Я' has in code page 1251 the hexadecimal value 0xDF like the character 'ß' in code page 1252 (Latin I). I have German set in Windows Regional and Language settings as default code page. It looks like the Windows default code page is always used instead of the code page of the file, at least for the string display in the title of the message box.

Please report this issue by email to IDM support as this is a user-to-user forum.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Find/Replace/Regular Expressions