* Bjoern Laessig <[EMAIL PROTECTED]> [2007-11-20 12:37]:
>     if k in ignore:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xa6 in position 52: 
> ordinal not in range(128)
> 
> adding a line
>                 print "Ignore : " + ignore
> as line 620 i got line:
> Ignore : 
> ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzŠšªŽµžºŒœŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789

Thanks for investigating the cause of this bug!  The patch below
(applied to /usr/share/python-support/jack/jack_freedb.py) should do
the trick:

--- jack_freedb.py~     2007-11-20 17:19:21.000000000 +0100
+++ jack_freedb.py      2007-11-20 17:22:27.000000000 +0100
@@ -598,7 +598,7 @@
     elif cf['_various']:
         found = [[], [], [], [], [], []]
         # lenght=3   2   1 , 3   2   1 (secondary)
-        ignore = string.letters + string.digits
+        ignore = string.ascii_uppercase + string.digits
         titles = []
         braces = [['"', '"'], ["'", "'"], ["(", ")"], ["[", "]"], ["{", "}"]]
  

Can you confirm that this works?
-- 
Martin Michlmayr
http://www.cyrius.com/


Reply via email to