Changes between Version 24 and Version 25 of UnicodeInPython
- Timestamp:
- 05/23/06 12:39:45 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UnicodeInPython
v24 v25 145 145 == shutil == 146 146 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. 148 148 149 149 == os.path == … … 183 183 184 184 On Unix, the {{{os.exec*}}} functions convert all parameters (path to executable and 185 arguments) from Unicode strings to aproperly encoded byte strings. I don't know if185 arguments) from Unicode strings to properly encoded byte strings. I don't know if 186 186 {{{locale.getpreferredencoding()}}} or 187 187 {{{sys.getfilesystemencoding()}}} is used, though. My guess is {{{sys.getfilesystemencoding()}}}. … … 211 211 == inspect == 212 212 213 inspect.getsource() returns byte strings with possiblynon-ASCII characters in them, so mixing the result with Unicode may be problematic.213 inspect.getsource() returns byte strings, possibly with non-ASCII characters in them, so mixing the result with Unicode may be problematic. 214 214 215 215 == Unicode arguments to exceptions ==
