summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-39/+3
|
* _PyUnicodeWriter_WriteStr() now checks that the input string is consistentVictor Stinner2015-03-261-0/+1
| | | | | | | in debug mode to detect bugs earlier. _PyUnicodeWriter_Finish() doesn't check if the read only string is consistent, whereas it does check consistency for strings built by itself.
* Issue #23573: Increased performance of string search operations (str.find,Serhiy Storchaka2015-03-241-152/+192
| | | | | str.index, str.count, the in operator, str.split, str.partition) with arguments of different kinds (UCS1, UCS2, UCS4).
* Fix compiler warnings: comparison between signed and unsigned numbersVictor Stinner2015-03-201-1/+1
|
* Initialize variables to prevent GCC warningsVictor Stinner2015-03-181-15/+20
|
* Issue #23451: Update pyconfig.h for Windows to require Vista headers and ↵Steve Dower2015-03-021-18/+1
| | | | remove unnecessary version checks.
* Issue #23490: Fixed possible crashes related to interoperability betweenSerhiy Storchaka2015-02-201-0/+9
|\ | | | | | | old-style and new API for string with 2**30-1 characters.
| * Issue #23490: Fixed possible crashes related to interoperability betweenSerhiy Storchaka2015-02-201-0/+9
| | | | | | | | old-style and new API for string with 2**30-1 characters.
* | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-17/+5
|\ \ | |/ | | | | overflows. Added few missed PyErr_NoMemory().
| * Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-17/+5
| | | | | | | | overflows. Added few missed PyErr_NoMemory().
* | Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() andVictor Stinner2015-01-261-4/+5
| | | | | | | | | | | | PyUnicode_EncodeCodePage() now raise an exception if the object is not an Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on platforms other than Windows. Patch written by Campbell Barton.
* | Issue #23321: Fixed a crash in str.decode() when error handler returnedSerhiy Storchaka2015-01-251-2/+6
|\ \ | |/ | | | | replacment string longer than mailformed input data.
| * Issue #23321: Fixed a crash in str.decode() when error handler returnedSerhiy Storchaka2015-01-251-2/+6
| | | | | | | | replacment string longer than mailformed input data.
* | Issue20284: Implement PEP461Ethan Furman2015-01-241-7/+5
| |
* | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-2/+2
|\ \ | |/
| * Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-2/+2
| |
* | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-2/+1
|\ \ | |/
| * Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-2/+1
| |
* | Issue #22975: Close block at right place.Serhiy Storchaka2014-12-011-1/+1
|\ \ | |/
| * Issue #22975: Close block at right place.Serhiy Storchaka2014-12-011-1/+1
| |
| * Merge 3.3Benjamin Peterson2014-10-161-1/+1
| |\
| | * Fixed signed/unsigned comparison warningAntoine Pitrou2014-10-151-1/+1
| | |
* | | Issue #20948: Inline makefmt() in unicode_fromformat_arg()Victor Stinner2014-11-181-44/+9
| | |
* | | Fixed signed/unsigned comparison warningAntoine Pitrou2014-10-151-1/+1
| | |
* | | merge 3.4 (closes #22643)Benjamin Peterson2014-10-151-3/+2
|\ \ \ | |/ /
| * | merge 3.3Benjamin Peterson2014-10-151-3/+2
| |\ \ | | |/
| | * it suffices to check for PY_SSIZE_T_MAX overflow (#22643)Benjamin Peterson2014-10-151-3/+2
| | |
* | | Merge 3.4Benjamin Peterson2014-10-151-1/+1
|\ \ \ | |/ /
| * | Merge 3.3Benjamin Peterson2014-10-151-1/+1
| |\ \ | | |/
| | * make sure length is unsignedBenjamin Peterson2014-10-151-1/+1
| | |
* | | merge 3.4 (#22643)Benjamin Peterson2014-10-151-0/+5
|\ \ \ | |/ /
| * | merge 3.3 (#22643)Benjamin Peterson2014-10-151-0/+5
| |\ \ | | |/
| | * fix integer overflow in unicode case operations (closes #22643)Benjamin Peterson2014-10-151-0/+5
| | |
* | | Fix "warning: comparison between signed and unsigned integer expressions"Gregory P. Smith2014-09-301-5/+5
| | | | | | | | | | | | | | | | | | -Wsign-compare warnings in unicodeobject.c. These were all a result of sizeof() being unsigned and being compared to a Py_ssize_t. Not actual problems.
* | | merge 3.4 (#22520)Benjamin Peterson2014-09-301-11/+17
|\ \ \ | |/ /
| * | merge 3.3 (#22520)Benjamin Peterson2014-09-301-11/+17
| |\ \ | | |/
| | * prevent overflow in unicode_repr (closes #22520)Benjamin Peterson2014-09-301-11/+17
| | |
* | | merge 3.4 (closes #22518)Benjamin Peterson2014-09-291-17/+47
|\ \ \ | |/ /
| * | merge 3.3 (closes #22518)Benjamin Peterson2014-09-291-17/+47
| |\ \ | | |/
| | * cleanup overflowing handling in unicode_decode_call_errorhandler and ↵Benjamin Peterson2014-09-291-18/+56
| | | | | | | | | | | | unicode_encode_ucs1 (closes #22518)
* | | Removed redundant casts to `char *`.Serhiy Storchaka2014-09-281-2/+2
| | | | | | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
* | | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-5/+5
| | | | | | | | | | | | argument contains not permitted null character or byte.
* | | Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner2014-08-151-5/+5
| | | | | | | | | | | | | | | | | | | | | warnings in the Objects/ subdirectory. PyType_FromSpecWithBases() and PyType_FromSpec() now reject explicitly negative slot identifiers.
* | | Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, renameVictor Stinner2014-08-011-4/+4
| | | | | | | | | | | | | | | ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions.
* | | unicodeobject.c: fix a compiler warning on Windows 64 bitsVictor Stinner2014-07-251-1/+2
| | |
* | | (Merge 3.4) Issue #21892, #21893: Partial revert of changeset 4f55e802baf0,Victor Stinner2014-07-041-18/+8
|\ \ \ | |/ / | | | | | | PyErr_Format() uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T
| * | Issue #21892, #21893: Partial revert of changeset 4f55e802baf0, PyErr_Format()Victor Stinner2014-07-041-18/+8
| | | | | | | | | | | | uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T
* | | (Merge 3.4) Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zuVictor Stinner2014-07-011-11/+23
|\ \ \ | |/ / | | | | | | to format C size_t, because %zi/%u is not supported on all platforms.
| * | Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format CVictor Stinner2014-07-011-11/+23
| | | | | | | | | | | | size_t, because %zi/%u is not supported on all platforms.
* | | Issue #21118: PyLong_AS_LONG() result type is longVictor Stinner2014-04-081-1/+1
| | | | | | | | | | | | Even if PyLong_AS_LONG() cannot fail, I prefer to use the right type.