websiteWebsite
sonata Sonata
Sonata is an elegant GTK+ music client for the Music Player Daemon (MPD).

 

Bug tracking

» Click here to report a bug on this project.

Bug report #2116
Title: 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: partizan Assigned to: Not assigned yet!
History:
  • 2011-01-22 14:47:00 - create by partizan
Feed subscription: RSS or Atom.
Attachements:
Search field in "Library" is insensitive to cyrillyc input (and maybe not only cyrillic):
sonata/misc.py
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

Title:


Message:

Need help? - Authorized (X)HTML tags: a, img, acronym, blockquote, code, ul, ol, li, h3, h4, p, br, hr, strong, em, pre, span, div, 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:
0 + 8        

Nickname: