989 Commits (cd8efa3704bc1aec1338fdc8fc0cfe8ee5bc100e)

Author SHA1 Message Date
Victor Stinner 0d92c4f667 Issue #16416: Fix error handling in _Py_wchar2char() _Py_char2wchar() functions 14 years ago
Victor Stinner fc009eff9e Close #16311: Use the _PyUnicodeWriter API in text decoders 14 years ago
Ezio Melotti f7ed5d111b #8271: the utf-8 decoder now outputs the correct number of U+FFFD characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti. 14 years ago
Benjamin Peterson c43112823b initialize more global type objects (closes #16369) 14 years ago
Victor Stinner e64322e034 Close #14625: Rewrite the UTF-32 decoder. It is now 3x to 4x faster 14 years ago
Victor Stinner 76df43de30 Issue #16330: Use surrogate-related macros 14 years ago
Mark Dickinson fb90c0934c Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 14 years ago
Victor Stinner c6cf1ba29e Replace usage of the deprecated Py_UNICODE_COPY() with Py_MEMCPY() in resize_copy() 14 years ago
Victor Stinner fe75fb4b3e Optimize _PyUnicode_HasNULChars(): use findchar() instead of PyUnicode_Contains() 14 years ago
Victor Stinner 6fa627578a Inline raise_translate_exception(): it is only used once 14 years ago
Victor Stinner e5567ad236 Optimize PyUnicode_RichCompare() for Py_EQ and Py_NE: always use memcmp() 14 years ago
Christian Heimes 743e0cd6b5 Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified 14 years ago
Chris Jerdonek 83fe2e1c22 Issue #14783: Improve int() docstring and also str(), range(), and slice(). 14 years ago
Victor Stinner 4c63a972d1 Cleanup PyUnicode_FromFormatV() for zero padding 14 years ago
Victor Stinner 15a1136547 Issue #16147: PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer 14 years ago
Victor Stinner ff5a848db5 Issue #16147: PyUnicode_FromFormatV() now raises an error if the argument of 14 years ago
Victor Stinner 3921e90c5a Issue #16147: PyUnicode_FromFormatV() now detects integer overflow when parsing 14 years ago
Victor Stinner e215d960be Issue #16147: Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API 14 years ago
Mark Dickinson c04ddff290 Issue #16096: Fix several occurrences of potential signed integer overflow. Thanks Serhiy Storchaka. 14 years ago
Victor Stinner 8c6db45d3e In debug mode, unicode_write_cstr() now checks that non-ASCII characters are 14 years ago
Ezio Melotti e7f90375b1 #16127: remove outdated references to narrow builds. Patch by Serhiy Storchaka. 14 years ago
Victor Stinner 1929407406 Fix PyUnicode_Format(): return NULL if PyUnicode_READY(uformat) failed 14 years ago
Victor Stinner 770e19e0cc Optimize unicode_compare(): use memcmp() when comparing two UCS1 strings 14 years ago
Victor Stinner 90db9c47dc Enable also ptr==ptr optimization in PyUnicode_Compare() 14 years ago
Victor Stinner aa7712711d unicode_result_wchar(): move the assert() to the "#ifdef Py_DEBUG" block 14 years ago
Victor Stinner a4708231e6 Split the huge PyUnicode_Format() function (+540 lines) into subfunctions 14 years ago
Victor Stinner a049443fab PyUnicode_Format(): disable overallocation when we are writing the last part 14 years ago
Victor Stinner afffce489b Unicode: resize_compact() and resize_inplace() fills also the Unicode strings 14 years ago
Victor Stinner c89d28fdfc Issue #15609: Fix refleak introduced by my last optimization 14 years ago
Victor Stinner 621ef3d84f Issue #15609: Optimize str%args for integer argument 14 years ago
Antoine Pitrou 6f80f5d444 Issue #15379: Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings). 14 years ago
Antoine Pitrou ca8aa4acf6 Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t. 14 years ago
Christian Heimes 5f520f4fed Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap() 14 years ago
Christian Heimes fd30236494 Fixed memory leak in error branch of formatfloat(). CID 719687 14 years ago
Christian Heimes f4f9939a96 Fixed memory leak in error branch of formatfloat(). CID 719687 14 years ago
Christian Heimes bdc7e69f42 Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap() 14 years ago
Antoine Pitrou 057119b0b7 Fix C++-style comment (xlc compilation failure) 14 years ago
Benjamin Peterson 28a6cfaefc use the stricter PyMapping_Check (closes #15801) 14 years ago
Stefan Krah 8528c3145e Issue #15728: Fix leak in PyUnicode_AsWideCharString(). Found by Coverity. 14 years ago
Nick Coghlan 573b1fd779 Fix str docstring 14 years ago
Antoine Pitrou b4bbee25b1 Issue #14579: Fix CVE-2012-2135: vulnerability in the utf-16 decoder after error handling. 14 years ago
Mark Dickinson 01ac8b6ab1 Use correct types for ASCII_CHAR_MASK integer constants. 14 years ago
Antoine Pitrou aaefac76dd Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels. 14 years ago
Victor Stinner f185226244 _copy_characters(): move debug code at the top to avoid noisy #ifdef 14 years ago
Victor Stinner 07621338fb Fix PyUnicode_GetSize(): Don't replace _PyUnicode_Ready() exception 14 years ago
Victor Stinner 8a8b3eaabe Fix a compiler warning in _copy_characters() and remove debug code 14 years ago
Victor Stinner 24e403bbee Oops, fix my previous change on _copy_characters() 14 years ago
Victor Stinner ca439eecea Fix unicode_adjust_maxchar(): catch PyUnicode_New() failure 14 years ago
Victor Stinner 184252ad3f Fix "%f" format of str%args if the result is not an ASCII or latin1 string 14 years ago
Victor Stinner 9a77770add Remove debug code 14 years ago