Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-29240: PyUnicode_DecodeLocale() uses UTF-8 on Android (#5272) | Victor Stinner | 2018-01-22 | 1 | -4/+7 |
| | | | | | | | | PyUnicode_DecodeLocaleAndSize(), PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale() now use always use the UTF-8 encoding on Android, instead of the current locale encoding. On Android API 19, mbstowcs() and wcstombs() are broken and cannot be used. | ||||
* | bpo-29240: Fix locale encodings in UTF-8 Mode (#5170) | Victor Stinner | 2018-01-15 | 1 | -0/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify locale.localeconv(), time.tzname, os.strerror() and other functions to ignore the UTF-8 Mode: always use the current locale encoding. Changes: * Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx(). On decoding or encoding error, they return the position of the error and an error message which are used to raise Unicode errors in PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale(). * Replace _Py_DecodeCurrentLocale() with _Py_DecodeLocaleEx(). * PyUnicode_DecodeLocale() now uses _Py_DecodeLocaleEx() for all cases, especially for the strict error handler. * Add _Py_DecodeUTF8Ex(): return more information on decoding error and supports the strict error handler. * Rename _Py_EncodeUTF8_surrogateescape() to _Py_EncodeUTF8Ex(). * Replace _Py_EncodeCurrentLocale() with _Py_EncodeLocaleEx(). * Ignore the UTF-8 mode to encode/decode localeconv(), strerror() and time zone name. * Remove PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and PyUnicode_EncodeLocale() now ignore the UTF-8 mode: always use the "current" locale. * Remove _PyUnicode_DecodeCurrentLocale(), _PyUnicode_DecodeCurrentLocaleAndSize() and _PyUnicode_EncodeCurrentLocale(). | ||||
* | bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285) | Serhiy Storchaka | 2017-06-27 | 1 | -5/+11 |
| | | | | | Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters. | ||||
* | bpo-28415: Note 0 conversion different between Python and C (#885) | Louie Lu | 2017-04-27 | 1 | -26/+29 |
| | |||||
* | bpo-29918: Add missed "const" modifiers in C API documentation. (#846) | Serhiy Storchaka | 2017-03-30 | 1 | -4/+4 |
| | |||||
* | bpo-28749: Fixed the documentation of the mapping codec APIs. (#487) | Serhiy Storchaka | 2017-03-19 | 1 | -47/+48 |
| | | | Added the documentation for PyUnicode_Translate(). | ||||
* | Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() | Serhiy Storchaka | 2017-01-22 | 1 | -2/+8 |
| | | | | is now of type "const char *" rather of "char *". | ||||
* | Issue #29087: Removed the documentation of non-existing UCS4 support functions. | Serhiy Storchaka | 2016-12-28 | 1 | -20/+0 |
|\ | |||||
| * | Issue #29087: Removed the documentation of non-existing UCS4 support functions. | Serhiy Storchaka | 2016-12-28 | 1 | -20/+0 |
| |\ | |||||
| | * | Issue #29087: Removed the documentation of non-existing UCS4 support functions. | Serhiy Storchaka | 2016-12-28 | 1 | -20/+0 |
| | | | |||||
* | | | Issue #28822: Adjust indices handling of PyUnicode_FindChar(). | Xiang Zhang | 2016-12-20 | 1 | -0/+3 |
|/ / | |||||
* | | Issue #29009: Merge 3.5. | Xiang Zhang | 2016-12-19 | 1 | -4/+0 |
|\ \ | |/ | |||||
| * | Issue #29009: Remove outdated doc of PyUnicode_RichCompare. | Xiang Zhang | 2016-12-19 | 1 | -4/+0 |
| | | |||||
* | | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-05 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-05 | 1 | -2/+1 |
| | | |||||
* | | Issue #28750: Fixed docs of of unicode-escape an raw-unicode-escape C API. | Serhiy Storchaka | 2016-11-20 | 1 | -7/+5 |
|\ \ | |/ | | | | | Patch by Xiang Zhang. | ||||
| * | Issue #28750: Fixed docs of of unicode-escape an raw-unicode-escape C API. | Serhiy Storchaka | 2016-11-20 | 1 | -7/+5 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Issue #19569: Suggested more appropriate replacements for deprecated Unicode | Serhiy Storchaka | 2016-11-20 | 1 | -17/+22 |
|\ \ | |/ | | | | | C API functions. | ||||
| * | Issue #19569: Suggested more appropriate replacements for deprecated Unicode | Serhiy Storchaka | 2016-11-20 | 1 | -17/+22 |
| | | | | | | | | C API functions. | ||||
* | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -0/+6 |
|\ \ | |/ | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -0/+6 |
| | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
* | | Issue #28496: Mark up constants 0, 1 and -1 that denote return values or | Serhiy Storchaka | 2016-10-27 | 1 | -24/+24 |
|\ \ | |/ | | | | | special input values as literal text. | ||||
| * | Issue #28496: Mark up constants 0, 1 and -1 that denote return values or | Serhiy Storchaka | 2016-10-27 | 1 | -24/+24 |
| | | | | | | | | special input values as literal text. | ||||
* | | Issue #19795: Mark up None as literal text. | Serhiy Storchaka | 2016-10-19 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | Issue #19795: Mark up None as literal text. | Serhiy Storchaka | 2016-10-19 | 1 | -4/+4 |
| | | |||||
* | | Issue #28432: Merge from 3.5 | Berker Peksag | 2016-10-16 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #28432: Fix first parameter name in PyUnicode_EncodeLocale documentation | Berker Peksag | 2016-10-16 | 1 | -1/+1 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Merge from 3.5. | Serhiy Storchaka | 2016-10-08 | 1 | -3/+6 |
|\ \ | |/ | |||||
| * | Issue #28379: Added sanity checks and tests for PyUnicode_CopyCharacters(). | Serhiy Storchaka | 2016-10-08 | 1 | -3/+6 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4(). | Serhiy Storchaka | 2016-10-02 | 1 | -1/+1 |
|\ \ | |/ | | | | | Original patch by Xiang Zhang. | ||||
| * | Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4(). | Serhiy Storchaka | 2016-10-02 | 1 | -1/+1 |
| | | | | | | | | Original patch by Xiang Zhang. | ||||
* | | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529) | Steve Dower | 2016-09-08 | 1 | -13/+17 |
| | | |||||
* | | more PY_LONG_LONG to long long | Benjamin Peterson | 2016-09-08 | 1 | -1/+0 |
| | | |||||
* | | Issue #27182: Add support for path-like objects to PyUnicode_FSDecoder(). | Brett Cannon | 2016-09-07 | 1 | -4/+8 |
| | | |||||
* | | Issue #26027: Support path-like objects in PyUnicode-FSConverter(). | Brett Cannon | 2016-09-06 | 1 | -1/+4 |
| | | | | | | | | | | This is to add support for os.exec*() and os.spawn*() functions. Part of PEP 519. | ||||
* | | require a long long data type (closes #27961) | Benjamin Peterson | 2016-09-06 | 1 | -5/+0 |
|/ | |||||
* | Issue #18353: Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst | Berker Peksag | 2016-04-24 | 1 | -2/+1 |
| | | | | Patch by Corey Brune. | ||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -2/+2 |
| | |||||
* | Issue #15984: Correct PyUnicode_FromObject() and _FromEncodedObject() docs | Martin Panter | 2016-04-15 | 1 | -5/+7 |
| | |||||
* | Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc | Martin Panter | 2016-04-15 | 1 | -3/+3 |
| | | | | This affects documentation, code comments, and a debugging messages. | ||||
* | Fixed documentation of functions with const char* arguments. | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
|\ | |||||
| * | Fixed documentation of functions with const char* arguments. | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
| | | |||||
* | | Merge: #23088: Clarify null termination of bytes and strings in C API. | R David Murray | 2015-05-14 | 1 | -16/+24 |
|\ \ | |/ | |||||
| * | #23088: Clarify null termination of bytes and strings in C API. | R David Murray | 2015-05-14 | 1 | -16/+24 |
| | | | | | | | | Patch by Martin Panter, reviewed by Serhiy Storchaka and R. David Murray. | ||||
| * | Issue #23181: More "codepoint" -> "code point". | Serhiy Storchaka | 2015-01-18 | 1 | -1/+1 |
| | | |||||
* | | Closes #23181: codepoint -> code point | Georg Brandl | 2015-01-14 | 1 | -1/+1 |
| | | |||||
* | | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 1 | -1/+2 |
| | | |||||
* | | (Merge 3.4) Closes #22580: Fix documentation of PyUnicode_Tailmatch() | Victor Stinner | 2014-10-09 | 1 | -1/+1 |
|\ \ | |/ | | | | | The result type is Py_ssize_t (and not int). | ||||
| * | Closes #22580: Fix documentation of PyUnicode_Tailmatch() | Victor Stinner | 2014-10-09 | 1 | -1/+1 |
| | | | | | | | | The result type is Py_ssize_t (and not int). |