Changes between Version 24 and Version 25 of UnicodeInPython

Show
Ignore:
Timestamp:
05/23/06 12:39:45 (4 years ago)
Author:
joel (IP: 194.237.142.21)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UnicodeInPython

    v24 v25  
    145145== shutil == 
    146146 
    147 {{{shutil.copytree}}} in Python 2.3 fails with {{{UnicodeEncodeError}}} when given a Unicode string as the first argument and the specified directory tree has some filename that isn't decodable in {{{sys.getfilesystemencoding()}}}. Work OK in Python 2.4. 
     147{{{shutil.copytree}}} in Python 2.3 fails with {{{UnicodeEncodeError}}} when given a Unicode string as the first argument and the specified directory tree has some filename that isn't decodable in {{{sys.getfilesystemencoding()}}}. Works OK in Python 2.4. 
    148148 
    149149== os.path == 
     
    183183 
    184184On Unix, the {{{os.exec*}}} functions convert all parameters (path to executable and 
    185 arguments) from Unicode strings to a properly encoded byte strings. I don't know if 
     185arguments) from Unicode strings to properly encoded byte strings. I don't know if 
    186186{{{locale.getpreferredencoding()}}} or 
    187187{{{sys.getfilesystemencoding()}}} is used, though. My guess is {{{sys.getfilesystemencoding()}}}. 
     
    211211== inspect == 
    212212 
    213 inspect.getsource() returns byte strings with possibly non-ASCII characters in them, so mixing the result with Unicode may be problematic. 
     213inspect.getsource() returns byte strings, possibly with non-ASCII characters in them, so mixing the result with Unicode may be problematic. 
    214214 
    215215== Unicode arguments to exceptions ==