Changeset 272 for trunk


Ignore:
Timestamp:
06/04/09 17:04:05 (13 years ago)
Author:
bas
Message:

email2trac.py.in:

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r271 r272  
    66
    77    All Fixes by: Bas van der Vlies
     8
     9  * Error in urllib.quote(filename) could not handle unicode
     10    filenames, closes #138
     11    Reported by: debacle at debian dot org
     12    Applied  by: Bas van der Vlies
    813
    9142009-04-09
  • trunk/debian/changelog

    r271 r272  
    77    All Fixes by: Bas van der Vlies
    88
     9  * Error in urllib.quote(filename) could not handle unicode
     10    filenames, closes #138
     11   
     12    Reported by: debacle at debian dot org
     13    Applied  by: Bas van der Vlies
     14
    915 -- root <root@subtrac2.rc.sara.nl>  Thu, 04 Jun 2009 14:48:11 +0200
    1016
  • trunk/email2trac.py.in

    r270 r272  
    12331233                                       
    12341234                        if self.QUOTE_ATTACHMENT_FILENAMES:
    1235                                 filename = urllib.quote(filename)
     1235                                try:
     1236                                        filename = urllib.quote(filename)
     1237                                except KeyError, detail:
     1238                                        filename = urllib.quote(filename.encode('utf-8'))
    12361239
    12371240                        # Make the filename unique for this ticket
Note: See TracChangeset for help on using the changeset viewer.