summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
Commit message (Collapse)AuthorAgeFilesLines
* Modified PyImport_Import and PyImport_ImportModule to always use absolute ↵Christian Heimes2008-01-031-1/+1
| | | | | | imports by calling __import__ with an explicit level of 0 Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-4/+4
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* Fixed a warning in _codecs_iso2022.c and some non C89 conform // comments.Christian Heimes2007-12-141-1/+1
|
* Add cheot-ga-keut composed make-up sequence support in EUC-KR codec.Hye-Shik Chang2007-08-201-7/+104
|
* Fix gb18030 codec's bug that doesn't map two-byte characters onHye-Shik Chang2007-08-041-0/+1
| | | | GB18030 extension in encoding. (bug reported by Bjorn Stabell)
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-14/+9
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when itHye-Shik Chang2007-06-051-1/+5
| | | | | reads a file that ends with incomplete sequence and sizehint argument for .read() is specified.
* Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfaultHye-Shik Chang2006-10-081-14/+22
| | | | when encoding non-BMP unicode characters. (Submitted by Ray Chason)
* Fix a few bugs on cjkcodecs found by Oren Tirosh:Hye-Shik Chang2006-09-053-28/+39
| | | | | | | | - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 2013:2 codepoints now.
* Fix a potentially invalid memory access of CJKCodecs' shift-jisHye-Shik Chang2006-06-051-1/+2
| | | | decoder. (found by Neal Norwitz)
* Make use of METH_O and METH_NOARGS where possible.Georg Brandl2006-05-291-16/+8
| | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
* Fix more ssize_t problems.Martin v. Löwis2006-04-221-1/+1
|
* Backport p3yk r45619:Hye-Shik Chang2006-04-211-4/+28
| | | | | | Add empty __init__ methods for stateful multibytecodec instances. This resolves a problem found by Thomas Wouters: http://mail.python.org/pipermail/python-dev/2006-April/064051.html
* Try to get rid of a Coverity warning by consistently using origpending.Neal Norwitz2006-03-281-1/+1
|
* Fix reference leaks introduced by the recent incremental codecHye-Shik Chang2006-03-272-41/+52
| | | | changes.
* Utilize %zd for Py_ssize_t formatting instead of casting to long.Hye-Shik Chang2006-03-261-4/+4
|
* Allow long objects as a position value of error callbacks returned.Hye-Shik Chang2006-03-261-8/+12
|
* Patch #1443155: Add the incremental codecs support for CJK codecs.Hye-Shik Chang2006-03-263-316/+826
| | | | (reviewed by Walter Dörwald)
* Bug #1448490: Fix a bug that ISO-2022 codecs could not handleHye-Shik Chang2006-03-131-1/+1
| | | | SS2 (single-shift 2) escape sequences correctly.
* Check NULL if Py_InitModule fails.Hye-Shik Chang2006-03-061-1/+2
|
* - Modernize code to use Py_ssize_t more intensively.Hye-Shik Chang2006-03-0418-168/+131
| | | | - Do some minor code clean-ups.
* More unconsting.Martin v. Löwis2006-02-271-2/+2
|
* Merge ssize_t branch.Martin v. Löwis2006-02-151-1/+1
|
* Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn moduleHye-Shik Chang2005-12-121-0/+8
| | | | build problem on AIX.
* Add const to several API functions that take char *.Jeremy Hylton2005-12-101-2/+2
| | | | | | | | | | | | | | | | | | | In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.
* Change the internal "undefined codepoint" mark for CJKCodecs decodersHye-Shik Chang2005-10-061-1/+4
| | | | | from U+FFFD to U+FFFE which is considered more appropriate. (from MAL's comment)
* SF Patch #1297028, cjkcodecs does not initialize type pointerNeal Norwitz2005-09-211-0/+4
| | | | | | | Fix segfault. I tried to write a test, but it wouldn't crash when running regrtest. This really should have some sort of test. Should definitely be backported.
* [ 1243081 ] repair typosGeorg Brandl2005-07-221-1/+1
|
* Bug #1005737, #1007249: Fix several build problems and warningsHye-Shik Chang2004-08-195-42/+45
| | | | | found on legacy C compilers of HP-UX, IRIX and Tru64. (Reported by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)
* Remove CJKCodecs implementation of UTF-7 and UTF-8 codec whichHye-Shik Chang2004-07-281-560/+0
| | | | | | aren't intended to be part of Python distributiuon. This was accidently imported on mass converting from standalone version of CJKCodecs.
* Replace an extern magic to assigning declared pointer from array's.Hye-Shik Chang2004-07-181-26/+12
| | | | And unifdef(1) compatibility blocks.
* Remove unused CNS-11643 mapping which shouldn't merged into main PythonHye-Shik Chang2004-07-181-11864/+0
| | | | yet.
* Repair MS compiler warning about signed-vs-unsigned mismatch. The planeTim Peters2004-07-181-2/+2
| | | | and width clearly don't need to be signed.
* Added a comment explaining the extern ugliness.Tim Peters2004-07-181-0/+6
|
* Changed the "predefinitions" of codec_list and mapping_list from staticTim Peters2004-07-181-2/+2
| | | | | | | | to extern. It's not legal C to say static whatever[]; because the size isn't given. Presumably this is a gcc extension.
* Bring CJKCodecs 1.1 into trunk. This completely reorganizes sourceHye-Shik Chang2004-07-1867-40161/+34069
| | | | | | and installed layouts to make maintenance simple and easy. And it also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004 and iso2022-jp-2004.
* Remove warning (static not being first) when building with -WNeal Norwitz2004-06-131-2/+2
|
* Fix MSVC6 warnings. (spotted by Tim Peters)Hye-Shik Chang2004-01-2320-48/+48
|
* Add CJK codecs support as discussed on python-dev. (SF #873597)Hye-Shik Chang2004-01-1751-0/+40542
Several style fixes are suggested by Martin v. Loewis and Marc-Andre Lemburg. Thanks!