Turkish locale problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm using exaile 0.2.11, and my locale is tr_TR.utf8
I can run exaile without any problem but when i try to play a music file, a get an error dialog complaining about "ARTiST". When i click OK, music interrupts
So i decided to run exaile from console and i see that output:
<<<<<<<< Quote >>>>>>>>
------
play ( /usr/lib/
-------
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
artist_id = library.
File "/usr/lib/
return func(self,
File "/usr/lib/
cols = globals()['%s%s' % (prep, table.upper())]
KeyError: 'ARTiSTS'
<<<<<<<< End Of Quote >>>>>>>>
I think this problem comes from Turkish alphabet, because we have i,İ,ı,I
i character uppercase => İ
ı character uppercase => I
So my locale tries to output "ARTİSTS" which is not "ARTISTS"
When i change my locale to en_US.utf8, this problem disappears. I can run exaile without any problems.
I hope this will be fixed
Thanks,
Yes, it's because of the Turkish "i" problem.
Can you try something? In the file xl/library.py, find this line:
cols = globals()['%s%s' % (prep, table.upper())]
and change "table.upper()" to just "table"