https://bugs.gpodder.org/show_bug.cgi?id=1097
Vladimir Voroshilov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Vladimir Voroshilov <[email protected]> 2010-08-17 11:33:00 BST --- (In reply to comment #0) > gpodder 2.7 hangs when trying to sync (^S) to a directory that contains a > non-ascii character. The directory name is from the podcast's title. > > gpodder 2.4 does not have this problem. I did not test 2.5 or 2.6. > > Example feed: http://omegataupodcast.net/category/podcast-en/feed/ > > The relevant entry from an exported .opml: > > <outline text="Wissenschaft und Technik im Kopfhoerer / Science and Technology > in your Headphones" title="omega tau » podcast (en)" type="rss" > xmlUrl="http://omegataupodcast.net/category/podcast-en/feed/"/> > > Note that title contains a '»' (U+00BB / RIGHT-POINTING DOUBLE ANGLE QUOTATION > MARK / angle quotation mark (right) / » / » / raquo) character. > > Error message: > > Exception in thread Thread-8: > Traceback (most recent call last): > File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner > self.run() > File "/usr/lib/python2.6/threading.py", line 477, in run > self.__target(*self.__args, **self.__kwargs) > File ".../gpodder-2.7/src/gpodder/gtkui/desktop/sync.py", line 186, in > sync_thread_func > device.add_tracks(episodes) > File ".../gpodder-2.7/src/gpodder/sync.py", line 200, in add_tracks > added = self.add_track(track) > File "/home/chkno/local/src/gpodder-2.7/src/gpodder/sync.py", line 597, in > add_track > log('Copying %s => %s', os.path.basename(from_file), > to_file.decode(util.encoding), sender=self) > File ".../gpodder-2.7/src/gpodder/liblogger.py", line 49, in log > print (('[%8.3f] ' % (time.time()-first_time)) + message) % args > UnicodeEncodeError: 'ascii' codec can't encode characters in position 115-116: > ordinal not in range(128) > > > On startup, gpodder says: > [ 2.294] Using ISO-8859-15 as encoding. If this > [ 2.294] is incorrect, please set your $LANG variable. I have similar (locale-related) problem with 2.5 and 2.7 under Windows. My system uses (like other Russian Windows do) ru_RU.CP1251 locale. If i start gPodder 'as is' it uses utf8 for filenames and folders (both downloaded episodes and synced filenames). Thus a have to start gPodder with "set LANG=ru_RU.cp1251" in batch file. Some investigation show me that "isinstance(filename, unicode)" expression does not work as expected under Windows. I'm not familiar with python/unicode so can't find proper solution, attached patch works for me, even if it really hack'ish. Perhaps, it will help you too and help devs to find/fix the bug. -- Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ gPodder-Bugs mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-bugs
