- 20 Agu, 2010 4 kayıt (commit)
-
-
Victor Stinner yazdı
The test is still failing on "x86 FreeBSD 7.2 3.x" and "sparc solaris10 gcc 3.x" buildbots. It looks like the locale encoding is able to decode b'\xff'. I suppose that it is an encoding like 'iso-8859-1'. Use C locale to set, I hope, the locale encoding to 'ascii'. Display also the encoding so if the test fails, at least I will learn the locale encoding choosen for the C locale.
-
Victor Stinner yazdı
There are buildbot failures on "x86 FreeBSD 3.x" and "sparc solaris10 gcc 3.x". I suppose that _Py_char2wchar() doesn't fail even if the locale encoding is unable to decode the byte string, because _Py_char2wchar() has a special mode for platform without mbrtowc() (ISO C99) function. Let's check my theory by avoid error on the Python print() instruction.
-
Vinay Sajip yazdı
-
Tim Golden yazdı
-
- 19 Agu, 2010 16 kayıt (commit)
-
-
Vinay Sajip yazdı
-
Amaury Forgeot d'Arc yazdı
Also remove one tab, and move a check closer to the possible failure.
-
Vinay Sajip yazdı
-
Senthil Kumaran yazdı
-
Amaury Forgeot d'Arc yazdı
Failure to do it may result in strange error messages or even crashes, in admittedly convoluted cases that are normally syntax errors, like: def f(*xx, __debug__): pass
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
Catch BytesWarning exceptions.
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
* Check fs encoding value on Windows * Ignore LANG= test on Windows and Mac OS X (fs encoding is hardcoded on these platforms)
-
Victor Stinner yazdı
-
Martin v. Löwis yazdı
-
Senthil Kumaran yazdı
-
Victor Stinner yazdı
error handler, or strict error handler on Windows. * Rewrite os.fsencode() documentation * Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING environment variable
-
- 18 Agu, 2010 19 kayıt (commit)
-
-
Victor Stinner yazdı
-
Victor Stinner yazdı
filesystem encoding is not related to sys.sizeof()
-
Éric Araujo yazdı
-
Andrew M. Kuchling yazdı
(Also fix a name ordering in the ACKS file.)
-
Éric Araujo yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Amaury Forgeot d'Arc yazdı
(the other functions where not affected by the recent change)
-
Victor Stinner yazdı
-
Victor Stinner yazdı
filesystem encoding. initfsencoding() displays also a better error message if get_codeset() failed.
-
Amaury Forgeot d'Arc yazdı
-
Victor Stinner yazdı
-
Antoine Pitrou yazdı
Matthew Ahrens.
-
Amaury Forgeot d'Arc yazdı
Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept and return characters from the full Unicode range (Py_UCS4). The differences from Python code are few: - unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit() now return the correct value for large code points - repr() may consider more characters as printable.
-
Antoine Pitrou yazdı
It is not sure it will be beneficial, though, since process launching is more expensive under Windows than it is under Linux.
-
Senthil Kumaran yazdı
-
Martin v. Löwis yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
* Use the current filesystem encoding instead of always using utf-8 * Enable the test on Mac OS X * Use TESTFN_UNENCODABLE and TESTFN_UNICODE instead of arbitrary filenames * To decode a filename, use strict error handler instead surrogateescape for mbcs encoding (on Windows) * Use TESTFN_UNENCODABLE (if available) for the directory name Skip the test if no non-ascii filename can be created.
-
- 17 Agu, 2010 1 kayıt (commit)
-
-
Victor Stinner yazdı
... to get the filename as a unicode object, instead of a byte string. Function needed to support unencodable filenames. Deprecate PyModule_GetFilename() in favor on the new function.
-