https://bugs.gpodder.org/show_bug.cgi?id=1097

           Summary: Cannot sync with non-ascii characters in title
           Product: gPodder
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: low
         Component: Application
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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; / &#187; / 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.

-- 
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

Reply via email to