Package: bittornado-gui BitTorrent T-0.3.17 (BitTornado) OS: linux2 Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
> Traceback (most recent call last): > File "/usr/bin/btdownloadgui", line 2323, in _next > savedas = dow.saveAs(choosefile, d.newpath) > File "/var/lib/python-support/python2.5/BitTornado/download_bt1.py", > line 439, in saveAs > n = path.join(n, i) > File "posixpath.py", line 65, in join > path += '/' + b > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 58: > ordinal not in range(128) > > Suggested patch: > ------ > 437a438,442> import sys > > if sys.getdefaultencoding() == 'ascii': > > mustencode = True > > else: > > mustencode = False > 438a444,445 > > if mustencode: > > i = i.decode('ascii', 'replace') > > ------ Hi, The above patch did not work for me when applied to /var/lib/python- support/python2.4/BitTornado/download_bt1.py So I created this fixed patch for /var/lib/python-support/python2.4/ BitTornado/download_bt1.py 376a377,382 > import sys > if sys.getdefaultencoding() == 'ascii': > mustencode = True > else: > mustencode = False > 380,381c386,391 < if path.exists(path.join(loc, x['path'][0])): < return True --- > if mustencode: > if path.exists(path.join(loc, x['path'][0].decode('ascii', > 'replace'))): > return True > else: > if path.exists(path.join(loc, x['path'][0])): > return True 412a423,429 > > import sys > if sys.getdefaultencoding() == 'ascii': > mustencode = True > else: > mustencode = False > 419,420c436,441 < if path.exists(path.join(file, x['path'] [0])): < existing = 1 --- > if mustencode: > if path.exists(path.join(file, > x['path'][0].decode('ascii', 'replace'))): > existing = 1 > else: > if path.exists(path.join(file, x['path'][0])): > existing = 1 438a460,461 > if mustencode: > i = i.decode('ascii', 'replace') Go Linux, -Justin Eraci -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]