summaryrefslogtreecommitdiffstats
path: root/Lib/encodings
Commit message (Collapse)AuthorAgeFilesLines
* Add some "used with permission" mentions where external resources are ↵Brett Cannon2016-01-151-0/+2
| | | | | | referenced. Permission was validated prior to adding these markings.
* Issue #16473: Merge codecs doc and test from 3.4 into 3.5Martin Panter2015-09-121-1/+1
|\
| * Issue #16473: Fix byte transform codec documentation; test quotetabs=TrueMartin Panter2015-09-121-1/+1
| | | | | | | | | | | | This changes the equivalent functions listed for the Base-64, hex and Quoted- Printable codecs to reflect the functions actually used. Also mention and test the "quotetabs" setting for Quoted-Printable encoding.
* | Added forgotten new files for issues #22681 and #22682.Serhiy Storchaka2015-05-122-0/+615
| |
* | Issue #22682: Added support for the kz1048 encoding.Serhiy Storchaka2015-05-121-0/+5
| |
* | Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.Serhiy Storchaka2014-11-071-1/+1
|\ \ | |/ | | | | Based on patch by Martin Panter.
| * Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.Serhiy Storchaka2014-11-071-1/+1
| | | | | | | | Based on patch by Martin Panter.
* | Issue #21171: Fixed undocumented filter API of the rot13 codec.Serhiy Storchaka2014-04-131-1/+1
|\ \ | |/ | | | | Patch by Berker Peksag.
| * Issue #21171: Fixed undocumented filter API of the rot13 codec.Serhiy Storchaka2014-04-131-1/+1
| | | | | | | | Patch by Berker Peksag.
* | Issue #20574: Implement incremental decoder for cp65001 codeVictor Stinner2014-03-171-3/+6
|/ | | | (Windows code page 65001, Microsoft UTF-8).
* Merge #7475: Remove references to '.transform' from transform codec docstrings.R David Murray2014-03-146-12/+6
|\
| * #7475: Remove references to '.transform' from transform codec docstrings.R David Murray2014-03-146-12/+6
| |
| * Issue #19619: Blacklist non-text codecs in method APISerhiy Storchaka2014-02-247-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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. Backported changeset d68df99d7a57.
* | whatsnew: cp273 codec (#10907797)R David Murray2014-03-081-0/+5
| | | | | | | | | | Also updated the docs and added the aliases mentioned by the references.
* | Fixed incorrectly applying a patch for issue19668.Serhiy Storchaka2013-11-232-26/+724
| |
* | Issue #19668: Added support for the cp1125 encoding.Serhiy Storchaka2013-11-232-26/+32
| |
* | Close #7475: Restore binary & text transform codecsNick Coghlan2013-11-231-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | The codecs themselves were restored in Python 3.2, this completes the restoration by adding back the convenience aliases. These aliases were originally left out due to confusing errors when attempting to use them with the text encoding specific convenience methods. Python 3.4 includes several improvements to those errors, thus permitting the aliases to be restored as well.
* | Issue #19619: Blacklist non-text codecs in method APINick Coghlan2013-11-227-0/+7
| | | | | | | | | | | | | | | | | | | | 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.
* | #1097797: Add CP273 codec, and exercise it in the test suiteAndrew Kuchling2013-11-101-0/+307
| |
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-3/+4
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-4/+3
| | | | | | | | ModuleNotFoundError.
* | Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:Victor Stinner2013-04-093-3/+0
|/ | | | cp037, cp500 and iso8859_1 codecs
* Normalize whitespaceAntoine Pitrou2012-06-162-2/+0
|
* Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels.Antoine Pitrou2012-06-167-422/+1078
| | | | Patch by Serhiy Storchaka.
* Speed up IDNA for the common caseAntoine Pitrou2011-11-101-0/+22
|
* Merge 3.2Florent Xicluna2011-10-281-6/+5
|\
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-281-6/+5
| |
* | Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8)Victor Stinner2011-10-261-0/+40
|/
* Issue #10807: Remove base64, bz2, hex, quopri, rot13, uu and zlib codecs fromVictor Stinner2011-01-021-18/+18
| | | | the codec aliases. They are still accessible via codecs.lookup().
* Don't use deprecated aliases.Georg Brandl2010-12-061-4/+4
|
* #7475: add (un)transform method to bytes/bytearray and str, add back codecs ↵Georg Brandl2010-12-028-18/+550
| | | | that can be used with them from Python 2.
* remove pointless coding cookiesFlorent Xicluna2010-08-301-1/+0
|
* Fix a typo in the alias target name for 'macintosh'.Marc-André Lemburg2010-08-211-1/+1
|
* alias macintosh to mac_roman #843590Benjamin Peterson2010-08-211-0/+1
|
* Merged revisions 81499,81506 via svnmerge fromBenjamin Peterson2010-06-272-0/+703
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81499 | georg.brandl | 2010-05-24 16:29:07 -0500 (Mon, 24 May 2010) | 1 line #8016: add the CP858 codec (approved by Benjamin). (Also add CP720 to the tests, it was missing there.) ........ r81506 | benjamin.peterson | 2010-05-24 17:04:53 -0500 (Mon, 24 May 2010) | 1 line set svn:eol-style ........
* Merged revisions 81471-81472 via svnmerge fromVictor Stinner2010-05-222-14/+26
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81471 | victor.stinner | 2010-05-22 15:37:56 +0200 (sam., 22 mai 2010) | 7 lines Issue #6268: More bugfixes about BOM, UTF-16 and UTF-32 * Fix seek() method of codecs.open(), don't write the BOM twice after seek(0) * Fix reset() method of codecs, UTF-16, UTF-32 and StreamWriter classes * test_codecs: use "w+" mode instead of "wt+". "t" mode is not supported by Solaris or Windows, but does it really exist? I found it the in the issue. ........ r81472 | victor.stinner | 2010-05-22 15:44:25 +0200 (sam., 22 mai 2010) | 4 lines Fix my last commit (r81471) about codecs Rememder: don't touch the code just before a commit ........
* Merged revisions 78806 via svnmerge fromBenjamin Peterson2010-03-081-311/+309
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78806 | benjamin.peterson | 2010-03-08 16:15:11 -0600 (Mon, 08 Mar 2010) | 1 line set svn:eol-style on various files ........
* Fix a minor grammatical error.Brett Cannon2009-12-131-1/+1
|
* Merged revisions 76337 via svnmerge fromPhilip Jenvey2009-11-171-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76337 | philip.jenvey | 2009-11-16 18:42:26 -0800 (Mon, 16 Nov 2009) | 2 lines #1757126: fix typo with the cyrillic_asian alias ........
* Oops, really pass a bytes string to the ctypes function.Amaury Forgeot d'Arc2009-07-131-27/+27
|
* Merged revisions 74000-74001 via svnmerge fromAmaury Forgeot d'Arc2009-07-131-0/+311
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74000 | amaury.forgeotdarc | 2009-07-13 22:01:11 +0200 (lun., 13 juil. 2009) | 4 lines #1616979: Add the cp720 (Arabic DOS) encoding. Since there is no official mapping file from unicode.org, the codec file is generated on Windows with the new genwincodec.py script. ........ r74001 | amaury.forgeotdarc | 2009-07-13 22:03:21 +0200 (lun., 13 juil. 2009) | 2 lines NEWS entry for r74000. ........
* #1276: Add temporary encoding aliases for non-supported Mac CJKHye-Shik Chang2008-08-231-0/+5
| | | | | encodings that are detected as system defaults in MacOS with CJK locales. Will be replaced by properly-implemented codecs in 3.1.
* #2834: Change re module semantics, so that str and bytes mixing is forbidden,Antoine Pitrou2008-08-191-5/+3
| | | | | and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead.
* Move the codec decode type checks to bytes/bytearray.decode().Marc-André Lemburg2008-06-061-0/+2
| | | | | | | | | | | | 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.
* The bz2 codec isn't supported any more. I've also commented out several ↵Christian Heimes2007-12-022-120/+18
| | | | codecs which were removed in the past.
* Rename buffer -> bytearray.Guido van Rossum2007-11-212-5/+5
|
* Merged revisions 59056-59076 via svnmerge fromChristian Heimes2007-11-201-13/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r59064 | christian.heimes | 2007-11-20 02:48:48 +0100 (Tue, 20 Nov 2007) | 1 line Fixed bug #1470 ........ r59066 | martin.v.loewis | 2007-11-20 03:46:02 +0100 (Tue, 20 Nov 2007) | 2 lines Patch #1468: Package Lib/test/*.pem. ........ r59068 | christian.heimes | 2007-11-20 04:21:02 +0100 (Tue, 20 Nov 2007) | 1 line Another fix for test_shutil. Martin pointed out that it breaks some build bots ........ r59073 | nick.coghlan | 2007-11-20 15:55:57 +0100 (Tue, 20 Nov 2007) | 1 line Backport some main.c cleanup from the py3k branch ........ r59076 | amaury.forgeotdarc | 2007-11-21 00:31:27 +0100 (Wed, 21 Nov 2007) | 6 lines The incremental decoder for utf-7 must preserve its state between calls. Solves issue1460. Might not be a backport candidate: a new API function was added, and some code may rely on details in utf-7.py. ........
* Merged revisions 59041-59055 via svnmerge fromGuido van Rossum2007-11-191-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r59044 | neal.norwitz | 2007-11-18 17:46:20 -0800 (Sun, 18 Nov 2007) | 1 line Use a slightly more recent version than 1.5.2b2. ........ r59047 | walter.doerwald | 2007-11-19 04:14:05 -0800 (Mon, 19 Nov 2007) | 2 lines Fix typo in comment. ........ r59049 | walter.doerwald | 2007-11-19 04:41:10 -0800 (Mon, 19 Nov 2007) | 4 lines Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode()) calling codecs.utf_8_decode() with final==True, which falled with incomplete byte sequences. Fix and test by James G. Sack. ........ r59051 | nick.coghlan | 2007-11-19 05:56:27 -0800 (Mon, 19 Nov 2007) | 1 line Enable some test_cmd_line_script debugging output to investigate failure on Mac OSX buildbot ........ r59053 | facundo.batista | 2007-11-19 08:30:24 -0800 (Mon, 19 Nov 2007) | 3 lines Fixed detail in add_type() explanation (issue 1463). ........ r59054 | guido.van.rossum | 2007-11-19 09:35:24 -0800 (Mon, 19 Nov 2007) | 2 lines Make this work stand-alone, too. ........ r59055 | guido.van.rossum | 2007-11-19 09:50:22 -0800 (Mon, 19 Nov 2007) | 3 lines Fix the OSX failures in this test -- they were due to /tmp being a symlink to /private/tmp. Adding a call to os.path.realpath() to temp_dir() fixed it. ........
* Merging the py3k-pep3137 branch back into the py3k branch.Guido van Rossum2007-11-063-12/+12
| | | | | | | | | | | | | | No detailed change log; just check out the change log for the py3k-pep3137 branch. The most obvious changes: - str8 renamed to bytes (PyString at the C level); - bytes renamed to buffer (PyBytes at the C level); - PyString and PyUnicode are no longer compatible. I.e. we now have an immutable bytes type and a mutable bytes type. The behavior of PyString was modified quite a bit, to make it more bytes-like. Some changes are still on the to-do list.
* Patch 1280, by Alexandre Vassalotti.Guido van Rossum2007-10-191-0/+2
| | | | | Make PyString's indexing and iteration return integers. (I changed a few of Alexandre's decisions -- GvR.)