Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Issue #22518: Fixed integer overflow issues in "backslashreplace", | Serhiy Storchaka | 2014-10-04 | 1 | -2/+8 | |
| | | | | | | | | "xmlcharrefreplace", and "surrogatepass" error handlers. | |||||
* | | Fixed reference leak in the "backslashreplace" error handler. | Serhiy Storchaka | 2014-09-23 | 1 | -1/+3 | |
|\ \ | |/ | ||||||
| * | Fixed reference leak in the "backslashreplace" error handler. | Serhiy Storchaka | 2014-09-23 | 1 | -1/+3 | |
| | | ||||||
* | | Merge fix for issue #22166 from 3.4 | Nick Coghlan | 2014-09-15 | 1 | -0/+26 | |
|\ \ | |/ | ||||||
| * | Issue #22166: clear codec caches in test_codecs | Nick Coghlan | 2014-09-15 | 1 | -0/+26 | |
| | | ||||||
* | | Issue #13916: Fix surrogatepass error handler on Windows | Victor Stinner | 2014-05-16 | 1 | -0/+4 | |
| | | ||||||
* | | Issue #13916: Disallowed the surrogatepass error handler for non UTF-* | Serhiy Storchaka | 2014-05-15 | 1 | -4/+19 | |
|/ | | | | encodings. | |||||
* | Close #20404: blacklist non-text encodings in io.TextIOWrapper | Nick Coghlan | 2014-02-04 | 1 | -21/+63 | |
| | | | | | | | | | - io.TextIOWrapper (and hence the open() builtin) now use the internal codec marking system added for issue #19619 - also tweaked the C code to only look up the encoding once, rather than multiple times - the existing output type checks remain in place to deal with unmarked third party codecs. | |||||
* | Issue #19619: Blacklist non-text codecs in method API | Nick Coghlan | 2013-11-22 | 1 | -16/+122 | |
| | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings. | |||||
* | Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates. | Serhiy Storchaka | 2013-11-19 | 1 | -17/+146 | |
| | | | | | | | | | | The utf-16* and utf-32* encoders no longer allow surrogate code points (U+D800-U+DFFF) to be encoded. The utf-32* decoders no longer decode byte sequences that correspond to surrogate code points. The surrogatepass error handler now works with the utf-16* and utf-32* codecs. Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu. | |||||
* | Close 19609: narrow scope of codec exc chaining | Nick Coghlan | 2013-11-15 | 1 | -4/+6 | |
| | ||||||
* | Close #17828: better handling of codec errors | Nick Coghlan | 2013-11-13 | 1 | -0/+18 | |
| | | | | | | | | - output type errors now redirect users to the type-neutral convenience functions in the codecs module - stateless errors that occur during encoding and decoding will now be automatically wrapped in exceptions that give the name of the codec involved | |||||
* | Issue #1772673: The type of `char*` arguments now changed to `const char*`. | Serhiy Storchaka | 2013-10-19 | 1 | -2/+2 | |
| | ||||||
* | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 1 | -2/+2 | |
| | ||||||
* | Issue #18408: normalizestring() now raises MemoryError on memory allocation ↵ | Victor Stinner | 2013-07-11 | 1 | -1/+1 | |
| | | | | failure | |||||
* | Issue #15422: get rid of PyCFunction_New macro | Andrew Svetlov | 2012-12-25 | 1 | -1/+1 | |
| | ||||||
* | #16336: merge with 3.3. | Ezio Melotti | 2012-11-03 | 1 | -4/+4 | |
|\ | ||||||
| * | #16336: merge with 3.2. | Ezio Melotti | 2012-11-03 | 1 | -4/+4 | |
| |\ | ||||||
| | * | #16336: fix input checking in the surrogatepass error handler. Patch by ↵ | Ezio Melotti | 2012-11-03 | 1 | -4/+4 | |
| | | | | | | | | | | | | Serhiy Storchaka. | |||||
* | | | Issue #16330: Use surrogate-related macros | Victor Stinner | 2012-10-30 | 1 | -2/+2 | |
|/ / | | | | | | | Patch written by Serhiy Storchaka. | |||||
* | | merge with 3.2 | Philip Jenvey | 2012-10-27 | 1 | -3/+4 | |
|\ \ | |/ | ||||||
| * | bounds check for bad data (thanks amaury) | Philip Jenvey | 2012-10-27 | 1 | -3/+4 | |
| | | ||||||
* | | Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) | Victor Stinner | 2012-04-27 | 1 | -4/+6 | |
| | | | | | | | | | | | | * In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError() | |||||
* | | Issue #13722: Avoid silencing ImportErrors when initializing the codecs ↵ | Antoine Pitrou | 2012-01-18 | 1 | -9/+0 | |
|\ \ | |/ | | | | | registry. | |||||
| * | Issue #13722: Avoid silencing ImportErrors when initializing the codecs ↵ | Antoine Pitrou | 2012-01-18 | 1 | -9/+0 | |
| | | | | | | | | registry. | |||||
* | | PyCodec_IgnoreErrors() avoids the deprecated "u#" format | Victor Stinner | 2011-12-01 | 1 | -2/+1 | |
| | | ||||||
* | | Avoid the Py_UNICODE type in codecs.c | Victor Stinner | 2011-11-04 | 1 | -4/+11 | |
| | | ||||||
* | | PyCodec_XMLCharRefReplaceError(): Remove unused variable | Victor Stinner | 2011-11-04 | 1 | -2/+2 | |
| | | ||||||
* | | Fix C89 incompatibility. | Martin v. Löwis | 2011-11-04 | 1 | -1/+1 | |
| | | ||||||
* | | Port error handlers from Py_UNICODE indexing to code point indexing. | Martin v. Löwis | 2011-11-04 | 1 | -77/+46 | |
| | | ||||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -2/+2 | |
| | | ||||||
* | | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16 | Victor Stinner | 2011-10-14 | 1 | -12/+12 | |
| | | ||||||
* | | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 1 | -2/+4 | |
| | | ||||||
* | | PyCodec_ReplaceErrors() uses "C" format instead of "u#" to build result | Victor Stinner | 2011-10-02 | 1 | -2/+3 | |
| | | ||||||
* | | Use the new Py_ARRAY_LENGTH macro | Victor Stinner | 2011-09-28 | 1 | -1/+1 | |
| | | ||||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -24/+20 | |
|/ | ||||||
* | Issue #1813: Fix codec lookup under Turkish locales. | Antoine Pitrou | 2011-07-24 | 1 | -1/+1 | |
| | ||||||
* | Issue #9804: ascii() now always represents unicode surrogate pairs as | Antoine Pitrou | 2010-09-09 | 1 | -6/+20 | |
| | | | | | | a single `\UXXXXXXXX`, regardless of whether the character is printable or not. Also, the "backslashreplace" error handler now joins surrogate pairs into a single character on UCS-2 builds. | |||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -522/+522 | |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ | |||||
* | Merged revisions ↵ | Georg Brandl | 2009-10-27 | 1 | -5/+17 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 75365,75394,75402-75403,75418,75459,75484,75592-75596,75600,75602-75607,75610-75613,75616-75617,75623,75627,75640,75647,75696,75795 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75365 | georg.brandl | 2009-10-11 22:16:16 +0200 (So, 11 Okt 2009) | 1 line Fix broken links found by "make linkcheck". scipy.org seems to be done right now, so I could not verify links going there. ........ r75394 | georg.brandl | 2009-10-13 20:10:59 +0200 (Di, 13 Okt 2009) | 1 line Fix markup. ........ r75402 | georg.brandl | 2009-10-14 17:51:48 +0200 (Mi, 14 Okt 2009) | 1 line #7125: fix typo. ........ r75403 | georg.brandl | 2009-10-14 17:57:46 +0200 (Mi, 14 Okt 2009) | 1 line #7126: os.environ changes *do* take effect in subprocesses started with os.system(). ........ r75418 | georg.brandl | 2009-10-14 20:48:32 +0200 (Mi, 14 Okt 2009) | 1 line #7116: str.join() takes an iterable. ........ r75459 | georg.brandl | 2009-10-17 10:57:43 +0200 (Sa, 17 Okt 2009) | 1 line Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__. ........ r75484 | georg.brandl | 2009-10-18 09:58:12 +0200 (So, 18 Okt 2009) | 1 line Fix missing word. ........ r75592 | georg.brandl | 2009-10-22 09:05:48 +0200 (Do, 22 Okt 2009) | 1 line Fix punctuation. ........ r75593 | georg.brandl | 2009-10-22 09:06:49 +0200 (Do, 22 Okt 2009) | 1 line Revert unintended change. ........ r75594 | georg.brandl | 2009-10-22 09:56:02 +0200 (Do, 22 Okt 2009) | 1 line Fix markup. ........ r75595 | georg.brandl | 2009-10-22 09:56:56 +0200 (Do, 22 Okt 2009) | 1 line Fix duplicate target. ........ r75596 | georg.brandl | 2009-10-22 10:05:04 +0200 (Do, 22 Okt 2009) | 1 line Add a new directive marking up implementation details and start using it. ........ r75600 | georg.brandl | 2009-10-22 13:01:46 +0200 (Do, 22 Okt 2009) | 1 line Make it more robust. ........ r75602 | georg.brandl | 2009-10-22 13:28:06 +0200 (Do, 22 Okt 2009) | 1 line Document new directive. ........ r75603 | georg.brandl | 2009-10-22 13:28:23 +0200 (Do, 22 Okt 2009) | 1 line Allow short form with text as argument. ........ r75604 | georg.brandl | 2009-10-22 13:36:50 +0200 (Do, 22 Okt 2009) | 1 line Fix stylesheet for multi-paragraph impl-details. ........ r75605 | georg.brandl | 2009-10-22 13:48:10 +0200 (Do, 22 Okt 2009) | 1 line Use "impl-detail" directive where applicable. ........ r75606 | georg.brandl | 2009-10-22 17:00:06 +0200 (Do, 22 Okt 2009) | 1 line #6324: membership test tries iteration via __iter__. ........ r75607 | georg.brandl | 2009-10-22 17:04:09 +0200 (Do, 22 Okt 2009) | 1 line #7088: document new functions in signal as Unix-only. ........ r75610 | georg.brandl | 2009-10-22 17:27:24 +0200 (Do, 22 Okt 2009) | 1 line Reorder __slots__ fine print and add a clarification. ........ r75611 | georg.brandl | 2009-10-22 17:42:32 +0200 (Do, 22 Okt 2009) | 1 line #7035: improve docs of the various <method>_errors() functions, and give them docstrings. ........ r75612 | georg.brandl | 2009-10-22 17:52:15 +0200 (Do, 22 Okt 2009) | 1 line #7156: document curses as Unix-only. ........ r75613 | georg.brandl | 2009-10-22 17:54:35 +0200 (Do, 22 Okt 2009) | 1 line #6977: getopt does not support optional option arguments. ........ r75616 | georg.brandl | 2009-10-22 18:17:05 +0200 (Do, 22 Okt 2009) | 1 line Add proper references. ........ r75617 | georg.brandl | 2009-10-22 18:20:55 +0200 (Do, 22 Okt 2009) | 1 line Make printout margin important. ........ r75623 | georg.brandl | 2009-10-23 10:14:44 +0200 (Fr, 23 Okt 2009) | 1 line #7188: fix optionxform() docs. ........ r75627 | fred.drake | 2009-10-23 15:04:51 +0200 (Fr, 23 Okt 2009) | 2 lines add further note about what's passed to optionxform ........ r75640 | neil.schemenauer | 2009-10-23 21:58:17 +0200 (Fr, 23 Okt 2009) | 2 lines Improve some docstrings in the 'warnings' module. ........ r75647 | georg.brandl | 2009-10-24 12:04:19 +0200 (Sa, 24 Okt 2009) | 1 line Fix markup. ........ r75696 | georg.brandl | 2009-10-25 21:25:43 +0100 (So, 25 Okt 2009) | 1 line Fix a demo. ........ r75795 | georg.brandl | 2009-10-27 16:10:22 +0100 (Di, 27 Okt 2009) | 1 line Fix a strange mis-edit. ........ | |||||
* | Rename utf8b error handler to surrogateescape. | Martin v. Löwis | 2009-05-10 | 1 | -6/+6 | |
| | ||||||
* | Rename the surrogates error handler to surrogatepass. | Martin v. Löwis | 2009-05-10 | 1 | -6/+6 | |
| | ||||||
* | Issue #5915: Implement PEP 383, Non-decodable Bytes in | Martin v. Löwis | 2009-05-05 | 1 | -0/+89 | |
| | | | | System Character Interfaces. | |||||
* | Make PyCodec_SurrogateErrors static. | Martin v. Löwis | 2009-05-02 | 1 | -1/+4 | |
| | ||||||
* | Issue #3672: Reject surrogates in utf-8 codec; add surrogates error | Martin v. Löwis | 2009-05-02 | 1 | -0/+92 | |
| | | | | handler. | |||||
* | Issue 3723: Fixed initialization of subinterpreters | Christian Heimes | 2008-10-30 | 1 | -0/+1 | |
| | | | | | The patch fixes several issues with Py_NewInterpreter as well as the demo for multiple subinterpreters. Most of the patch was written by MvL with help from Benjamin, Amaury and me. Graham Dumpleton has verified that this patch fixes an issue with mod_wsgi. | |||||
* | Move the codec decode type checks to bytes/bytearray.decode(). | Marc-André Lemburg | 2008-06-06 | 1 | -20/+25 | |
| | | | | | | | | | | | | Use faster PyUnicode_FromEncodedObject() for bytes/bytearray.decode(). Add new PyCodec_KnownEncoding() API. Add new PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode() APIs. Add missing PyUnicode_AsDecodedObject() to unicodeobject.h Fix punicode codec to also work on memoryviews. | |||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -2/+2 | |
| | ||||||
* | Renamed PyBytes to PyByteArray | Christian Heimes | 2008-05-26 | 1 | -2/+2 | |
| | ||||||
* | More PyImport_ImportModule -> PyImport_ImportModuleNoBlock | Christian Heimes | 2008-01-03 | 1 | -1/+1 | |
| |