- 22 Kas, 2011 8 kayıt (commit)
-
-
Victor Stinner yazdı
the Solaris issue is solved. But add assertion on the maximum character in various encoders: UTF-7, UTF-8, wide character (wchar_t*, Py_UNICODE*), unicode-escape, raw-unicode-escape. Fix also unicode_encode_ucs1() for backslashreplace error handler: Python is now always "wide".
-
Victor Stinner yazdı
-
Victor Stinner yazdı
* Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len) * Replace Py_UNICODE by wchar_t * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead of PyUnicode_FromUnicode() + _snwprintf()
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
* unicode_ready() has a simpler API * try to reuse unicode_empty and latin1_char singleton everywhere * Fix a reference leak in _PyUnicode_TranslateCharmap() * PyUnicode_InternInPlace() doesn't try to get a singleton anymore, to avoid having to handle a failure
-
Victor Stinner yazdı
It tests indirectly PyUnicode_Copy(): ensure that the string is a copy.
-
- 21 Kas, 2011 27 kayıt (commit)
-
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
USe PyUnicode_Copy() in fixup()
-
Victor Stinner yazdı
-
Victor Stinner yazdı
Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII().
-
Antoine Pitrou yazdı
make _multiprocessing.win32.WaitForMultipleObjects interruptible when the wait_flag parameter is false. Patch by sbt.
-
Antoine Pitrou yazdı
-
Antoine Pitrou yazdı
This almost catches up with pre-PEP 393 performance, when decoding needed only one pass.
-
Antoine Pitrou yazdı
raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt.
-
Antoine Pitrou yazdı
raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt.
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
Dump the wchar_t that we are going to decode and dump the locale
-
Victor Stinner yazdı
character is bigger than U+10FFFF and locale.localeconv() dumps the string before decoding it. Temporary hack to debug the issue #13441.
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
And PyUnicode_GetSize() => PyUnicode_GetLength()
-
Victor Stinner yazdı
using an assertion
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
-
Victor Stinner yazdı
-
Victor Stinner yazdı
The index is a character index, not a index in a Py_UNICODE* string.
-
Victor Stinner yazdı
-
- 20 Kas, 2011 5 kayıt (commit)
-
-
Victor Stinner yazdı
Patch written by Arfrever Frehtes Taifersar Arahesis.
-
Victor Stinner yazdı
Patch written by Arfrever Frehtes Taifersar Arahesis.
-
Victor Stinner yazdı
The index is a character index, not a index in a Py_UNICODE* string.
-
Victor Stinner yazdı
and check the string consistency. _PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be possible to call this function even if hash(str) was already called.
-
Victor Stinner yazdı
the deprecate Py_UNICODE type
-