Bug tracking

Feed subscription: RSS or Atom.


#2116 – search field insensitive to cyrillic input
Date added: 2011-01-22 14:47:00 Type: Bug report
Status: Unconfirmed Priority: Normal
Affected version: n/a Milestone: n/a
Reported by:
Assigned to: Not assigned yet!
Search field in "Library" is insensitive to cyrillyc input (and maybe not only cyrillic):
0 1 2
locale.setlocale(locale.LC_CTYPE, "C")

if i comment this line, cyrillic input works fine.
seems like it's workaraund for turkish locale, so, checking locale before setting to "C" may help.
something like this:
0 1 2 3 4 5
loc, coding = locale.getlocale()[]
turkish = ['one_code', 'second_code'] # substitute here turkish locale codes
if loc in turkish:
    locale.setlocale(locale.LC_CTYPE, "C")
Post to this thread



Authorized (X)HTML tags: a, img, abbr, blockquote, code, ul, ol, li, h3, h4, p, br, hr, strong, em, pre, sub, sup, table, caption, thead, tr, th, tfoot, tbody, td.

Captcha security:
In order to check you are not a robot, please answer to that simple question:
2 + six