summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
Commit message (Collapse)AuthorAgeFilesLines
...
| * Issue #23215: Multibyte codecs with custom error handlers that ignores errorsSerhiy Storchaka2015-02-201-8/+11
| | | | | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo.
* | Fixed few compiler warnings.Serhiy Storchaka2015-02-161-4/+3
| |
* | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-184-5/+5
|\ \ | |/
| * Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-184-5/+5
| |
* | Removed redundant casts to `char *`.Serhiy Storchaka2014-09-282-3/+3
| | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
* | Issue #20152: Convert _multibytecodecs to Argument Clinic.Brett Cannon2014-08-222-142/+492
|/
* Issue #19515: Remove identifiers duplicated in the same file.Victor Stinner2013-11-121-2/+2
| | | | Patch written by Andrei Dorian Duma.
* CJK codecs: less magical macros, semicolon is now explicitVictor Stinner2013-10-288-104/+118
|
* CJK codecs: less magic macros, require explicit semicolonVictor Stinner2013-10-2810-191/+234
|
* CJK codecs: add newlines for readabilityVictor Stinner2013-10-287-91/+188
|
* CJK codecs: use less magic and more readable macros, write explicit ifVictor Stinner2013-10-287-34/+32
|
* CJK codecs: remove unused TRYMAP_ENC_MPLANE macroVictor Stinner2013-10-281-10/+0
|
* Issue #18509: handle PyUnicode_Writer() errorVictor Stinner2013-10-287-84/+102
|
* Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-1/+1
|
* Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant toVictor Stinner2013-07-163-2/+5
| | | | notify exceptions raised by the _PyUnicodeWriter API
* Issue #18408: Fix CJK decoders, raise MemoryError on memory allocation failureVictor Stinner2013-07-151-1/+3
|
* fix indentationVictor Stinner2013-07-081-13/+13
|
* Close #17694: Add minimum length to _PyUnicodeWriterVictor Stinner2013-04-171-4/+5
| | | | | | | | | | | | * Add also min_char attribute to _PyUnicodeWriter structure (currently unused) * _PyUnicodeWriter_Init() has no more argument (except the writer itself): min_length and overallocate must be set explicitly * In error handlers, only enable overallocation if the replacement string is longer than 1 character * CJK decoders don't use overallocation anymore * Set min_length, instead of preallocating memory using _PyUnicodeWriter_Prepare(), in many decoders * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
* Issue #17693: Fix memory/reference leaksVictor Stinner2013-04-141-5/+3
|
* Issue #17693: CJK encoders now use the new Unicode API (PEP 393)Victor Stinner2013-04-149-418/+430
|
* Close #17693: Rewrite CJK decoders to use the _PyUnicodeWriter API instead ofVictor Stinner2013-04-1113-440/+384
| | | | | | the legacy Py_UNICODE API. Add also a new _PyUnicodeWriter_WriteChar() function.
* merge 3.3 (#16585)Benjamin Peterson2012-12-021-2/+6
|\
| * support encoding error handlers that return bytes (closes #16585)Benjamin Peterson2012-12-021-2/+6
| |
* | merge 3.3Benjamin Peterson2012-12-021-3/+3
|\ \ | |/
| * unicode -> strBenjamin Peterson2012-12-021-3/+3
| |
* | Issue #16330: Fix compilation on WindowsVictor Stinner2012-10-301-1/+1
| |
* | Issue #16330: Use surrogate-related macrosVictor Stinner2012-10-301-6/+5
|/ | | | Patch written by Serhiy Storchaka.
* Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)Victor Stinner2011-12-011-2/+2
| | | | Create an empty string with the new Unicode API.
* MultibyteCodec_Decode() catchs PyUnicode_AS_UNICODE() failuresVictor Stinner2011-12-011-0/+2
|
* CJK codecs checks for conversion to Py_UNICODE* failuresVictor Stinner2011-11-211-3/+10
|
* MultibyteCodec_Encode() checks if PyUnicode_AS_UNICODE() failedVictor Stinner2011-11-211-2/+5
|
* Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-2/+2
|
* Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-2/+5
| | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* Issue #12016: Multibyte CJK decoders now resynchronize fasterVictor Stinner2011-07-075-36/+36
| | | | | | | They only ignore the first byte of an invalid byte sequence. For example, b'\xff\n'.decode('gb2312', 'replace') gives '\ufffd\n' instead of '\ufffd'.
* (Merge 3.2) Issue #12016: Reindent decoders of HK and JP codecsVictor Stinner2011-06-032-51/+52
|\
| * Issue #12016: Reindent decoders of HK and JP codecsVictor Stinner2011-06-032-51/+52
| |
* | Close #12171: IncrementalEncoder.reset() of CJK codecs (multibytecodec) callsVictor Stinner2011-05-301-4/+10
| | | | | | | | encreset() instead of decreset().
* | (Merge 3.2) Issue #12100: Don't reset incremental encoders of CJK codecs atVictor Stinner2011-05-241-4/+4
|\ \ | |/ | | | | | | each call to their encode() method anymore, but continue to call the reset() method if the final argument is True.
| * Issue #12100: Don't reset incremental encoders of CJK codecs at each call toVictor Stinner2011-05-241-4/+4
| | | | | | | | | | their encode() method anymore, but continue to call the reset() method if the final argument is True.
| * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-0911-4071/+4071
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from 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. ........ ................
* | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-222-1/+2
| |
* | Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-0911-4071/+4071
|/ | | | | | | | | | 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. ........
* add a replacement API for PyCObject, PyCapsule #5630Benjamin Peterson2009-05-053-7/+12
| | | | | | All stdlib modules with C-APIs now use this. Patch by Larry Hastings
* Issue #5640: Fix _multibytecodec so that CJK codecs don't repeatHye-Shik Chang2009-04-021-1/+1
| | | | | error replacement returned by codec error callbacks twice in IncrementalEncoder and StreamWriter.
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-5/+5
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Followup of #4874: also fix multibytecodec.cAntoine Pitrou2009-01-221-2/+2
|
* merge from trunkBenjamin Peterson2008-10-111-1/+1
|
* Issue #3575: Incremental decoder's decode function now takes bytearrayHirokazu Yamamoto2008-08-171-2/+7
| | | | by using 's*' instead of 't#'
* Merged revisions 65654 via svnmerge fromMartin v. Löwis2008-08-131-3/+11
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*. ........
* Rename PyUnicode_AsString -> _PyUnicode_AsString andMarc-André Lemburg2008-08-072-3/+3
| | | | | | | | | PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1.