summaryrefslogtreecommitdiff
path: root/Modules/_iconv_codec.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert Patch #670715: iconv support.Martin v. Löwis2003-04-031-723/+0
|
* Fix SF bug #690012 (among others), iconv_codec stops buildNeal Norwitz2003-02-281-3/+3
| | | | | | | | Change setup.py to catch all exceptions. - Rename module if the exception was an ImportError - Only warn if the exception was any other error Revert _iconv_codec to raising a RuntimeError.
* Change the test encoding from "ISO8859-1" to "ISO-8859-1"Walter Dörwald2003-02-241-4/+4
| | | | | | | | | (see SF bug #690309) and raise ImportErrors instead of RuntimeErrors, so building Python continues even if importing iconv_codecs fails. This is a temporary fix until we get proper configure support for "broken" iconv implementations.
* Use 'ISO8859-1' instead of 'ASCII' when testing whether byteswappingWalter Dörwald2003-02-211-5/+5
| | | | | | | | | | is required for the chosen internal encoding in the init function, as this seems to have a better chance of working under Irix and Solaris. Also change the test character from '\x01' to '0'. This might fix SF bug #690309.
* Fold some long lines.Guido van Rossum2003-02-181-14/+31
| | | | Change fatal errors during module initialization into RuntimeErrors.
* Patch #676839: Cygwin _iconv_codec module patchJason Tishler2003-02-101-1/+2
| | | | | The attached patch enables the _iconv_codec module to build cleanly under Cygwin.
* Remove forward static reference since it is not requiredNeal Norwitz2003-02-041-3/+1
|
* Use size_t instead of int for various variables to preventWalter Dörwald2003-02-041-9/+9
| | | | | | | | signed/unsigned comparison warnings on the call to iconv(). Fix comment typos. From SF patch #680146.
* Change the treatment of positions returned by PEP293Walter Dörwald2003-01-311-4/+14
| | | | | | | | | | | | | | | | error handers in the Unicode codecs: Negative positions are treated as being relative to the end of the input and out of bounds positions result in an IndexError. Also update the PEP and include an explanation of this in the documentation for codecs.register_error. Fixes a small bug in iconv_codecs: if the position from the callback is negative *add* it to the size instead of substracting it. From SF patch #677429.
* Initialize swappedinput to silence the compiler warning aboutWalter Dörwald2003-01-311-1/+1
| | | | uninitialized variables.
* Check whether the choosen encoding requires byte swappingWalter Dörwald2003-01-301-1/+79
| | | | | | | | | | | | | | | for this iconv() implementation in the init function. For encoding: use a byteswapped version of the input if neccessary. For decoding: byteswap every piece returned by iconv() if neccessary (but not those pieces returned from the callback) Comment out test_sane() in the test script, because whether this works depends on whether byte swapping is neccessary or not (an on Py_UNICODE_SIZE)
* Fix reference counting of iconvcodec_Type. Fixes #670715.Martin v. Löwis2003-01-271-6/+4
| | | | Remove GC code; the base type does not need GC.
* Get rid of compiler warnings on RedhatNeal Norwitz2003-01-261-2/+2
|
* Add _iconv_codec to Setup.dist. Use PyModule_ functions.Martin v. Löwis2003-01-261-8/+3
|
* Patch #670715: Universal Unicode Codec for POSIX iconv.Martin v. Löwis2003-01-261-0/+626