Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 dir_iter improvments

open
nobody
None
5
2006-12-22
2006-12-22
Guria
No

Apps uses dir_iter module (including file_browser.py) shows that folder is empty if it contains file or folders named with non-ascii characters.
For correct work it's enough to change one string in dir_iter.py.
old:
return (unicode(name_field), unicode(info_field))
new:
return (unicode(name_field, encoding='utf-8', errors='replace'), unicode(info_field, encoding='utf-8', errors='replace'))

Discussion

  • Guria
    Guria
    2006-12-22

    Corrected dir_iter module

     
    Attachments
  • zanac
    zanac
    2007-01-19

    Logged In: YES
    user_id=1610717
    Originator: NO

    Thanks!