Update of /cvsroot/python/python/dist/src/Lib/encodings In directory usw-pr-cvs1:/tmp/cvs-serv26608/Lib/encodings Modified Files: cp037.py cp1006.py cp1026.py cp1250.py cp1251.py cp1252.py cp1253.py cp1254.py cp1255.py cp1256.py cp1257.py cp1258.py cp424.py cp437.py cp500.py cp737.py cp775.py cp850.py cp852.py cp855.py cp856.py cp857.py cp860.py cp861.py cp862.py cp863.py cp864.py cp865.py cp866.py cp869.py cp874.py cp875.py iso8859_1.py iso8859_10.py iso8859_13.py iso8859_14.py iso8859_15.py iso8859_2.py iso8859_3.py iso8859_4.py iso8859_5.py iso8859_6.py iso8859_7.py iso8859_8.py iso8859_9.py koi8_r.py mac_cyrillic.py mac_greek.py mac_iceland.py mac_latin2.py mac_roman.py mac_turkish.py Log Message: This patch changes the default behaviour of the builtin charmap codec to not apply Latin-1 mappings for keys which are not found in the mapping dictionaries, but instead treat them as undefined mappings. The patch was originally written by Martin v. Loewis with some additional (cosmetic) changes and an updated test script by Marc-Andre Lemburg. The standard codecs were recreated from the most current files available at the Unicode.org site using the Tools/scripts/gencodec.py tool. This patch closes the bugs #116285 and #119960. Index: cp037.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp037.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp037.py 2000/03/10 23:17:18 1.1 --- cp037.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP037.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP037.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION *************** *** 274,278 **** 0x00fe: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE 0x00ff: 0x009f, # CONTROL ! } ### Encoding Map --- 274,278 ---- 0x00fe: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE 0x00ff: 0x009f, # CONTROL ! }) ### Encoding Map Index: cp1006.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1006.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1006.py 2000/03/10 23:17:18 1.1 --- cp1006.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1006.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1006.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x06f0, # EXTENDED ARABIC-INDIC DIGIT ZERO 0x00a2: 0x06f1, # EXTENDED ARABIC-INDIC DIGIT ONE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x06f0, # EXTENDED ARABIC-INDIC DIGIT ZERO 0x00a2: 0x06f1, # EXTENDED ARABIC-INDIC DIGIT ONE *************** *** 132,136 **** 0x00fe: 0xfe7c, # ARABIC SHADDA ISOLATED FORM 0x00ff: 0xfe7d, # ARABIC SHADDA MEDIAL FORM ! } ### Encoding Map --- 132,136 ---- 0x00fe: 0xfe7c, # ARABIC SHADDA ISOLATED FORM 0x00ff: 0xfe7d, # ARABIC SHADDA MEDIAL FORM ! }) ### Encoding Map Index: cp1026.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1026.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1026.py 2000/03/10 23:17:18 1.1 --- cp1026.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1026.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1026.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION *************** *** 274,278 **** 0x00fe: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE 0x00ff: 0x009f, # CONTROL ! } ### Encoding Map --- 274,278 ---- 0x00fe: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE 0x00ff: 0x009f, # CONTROL ! }) ### Encoding Map Index: cp1250.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1250.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1250.py 2000/03/10 23:17:19 1.1 --- cp1250.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1250.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1250.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 117,121 **** 0x00fe: 0x0163, # LATIN SMALL LETTER T WITH CEDILLA 0x00ff: 0x02d9, # DOT ABOVE ! } ### Encoding Map --- 117,121 ---- 0x00fe: 0x0163, # LATIN SMALL LETTER T WITH CEDILLA 0x00ff: 0x02d9, # DOT ABOVE ! }) ### Encoding Map Index: cp1251.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1251.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1251.py 2000/03/10 23:17:19 1.1 --- cp1251.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1251.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1251.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x0402, # CYRILLIC CAPITAL LETTER DJE 0x0081: 0x0403, # CYRILLIC CAPITAL LETTER GJE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x0402, # CYRILLIC CAPITAL LETTER DJE 0x0081: 0x0403, # CYRILLIC CAPITAL LETTER GJE *************** *** 151,155 **** 0x00fe: 0x044e, # CYRILLIC SMALL LETTER YU 0x00ff: 0x044f, # CYRILLIC SMALL LETTER YA ! } ### Encoding Map --- 151,155 ---- 0x00fe: 0x044e, # CYRILLIC SMALL LETTER YU 0x00ff: 0x044f, # CYRILLIC SMALL LETTER YA ! }) ### Encoding Map Index: cp1252.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1252.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1252.py 2000/03/10 23:17:19 1.1 --- cp1252.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1252.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1252.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 70,74 **** 0x009e: 0x017e, # LATIN SMALL LETTER Z WITH CARON 0x009f: 0x0178, # LATIN CAPITAL LETTER Y WITH DIAERESIS ! } ### Encoding Map --- 70,74 ---- 0x009e: 0x017e, # LATIN SMALL LETTER Z WITH CARON 0x009f: 0x0178, # LATIN CAPITAL LETTER Y WITH DIAERESIS ! }) ### Encoding Map Index: cp1253.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1253.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1253.py 2000/03/10 23:17:19 1.1 --- cp1253.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1253.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1253.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 145,149 **** 0x00fe: 0x03ce, # GREEK SMALL LETTER OMEGA WITH TONOS 0x00ff: None, # UNDEFINED ! } ### Encoding Map --- 145,149 ---- 0x00fe: 0x03ce, # GREEK SMALL LETTER OMEGA WITH TONOS 0x00ff: None, # UNDEFINED ! }) ### Encoding Map Index: cp1254.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1254.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1254.py 2000/03/10 23:17:19 1.1 --- cp1254.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1254.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1254.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 76,80 **** 0x00fd: 0x0131, # LATIN SMALL LETTER DOTLESS I 0x00fe: 0x015f, # LATIN SMALL LETTER S WITH CEDILLA ! } ### Encoding Map --- 76,80 ---- 0x00fd: 0x0131, # LATIN SMALL LETTER DOTLESS I 0x00fe: 0x015f, # LATIN SMALL LETTER S WITH CEDILLA ! }) ### Encoding Map Index: cp1255.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1255.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1255.py 2000/03/10 23:17:19 1.1 --- cp1255.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1255.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1255.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 137,141 **** 0x00fe: 0x200f, # RIGHT-TO-LEFT MARK 0x00ff: None, # UNDEFINED ! } ### Encoding Map --- 137,141 ---- 0x00fe: 0x200f, # RIGHT-TO-LEFT MARK 0x00ff: None, # UNDEFINED ! }) ### Encoding Map Index: cp1256.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1256.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1256.py 2000/03/10 23:17:19 1.1 --- cp1256.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1256.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1256.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: 0x067e, # ARABIC LETTER PEH --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: 0x067e, # ARABIC LETTER PEH *************** *** 123,127 **** 0x00fe: 0x200f, # RIGHT-TO-LEFT MARK 0x00ff: 0x06d2, # ARABIC LETTER YEH BARREE ! } ### Encoding Map --- 123,127 ---- 0x00fe: 0x200f, # RIGHT-TO-LEFT MARK 0x00ff: 0x06d2, # ARABIC LETTER YEH BARREE ! }) ### Encoding Map Index: cp1257.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1257.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1257.py 2000/03/10 23:17:19 1.1 --- cp1257.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1257.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1257.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 125,129 **** 0x00fe: 0x017e, # LATIN SMALL LETTER Z WITH CARON 0x00ff: 0x02d9, # DOT ABOVE ! } ### Encoding Map --- 125,129 ---- 0x00fe: 0x017e, # LATIN SMALL LETTER Z WITH CARON 0x00ff: 0x02d9, # DOT ABOVE ! }) ### Encoding Map Index: cp1258.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1258.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp1258.py 2000/03/10 23:17:19 1.1 --- cp1258.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP1258.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP1258.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 84,88 **** 0x00fd: 0x01b0, # LATIN SMALL LETTER U WITH HORN 0x00fe: 0x20ab, # DONG SIGN ! } ### Encoding Map --- 84,88 ---- 0x00fd: 0x01b0, # LATIN SMALL LETTER U WITH HORN 0x00fe: 0x20ab, # DONG SIGN ! }) ### Encoding Map Index: cp424.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp424.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp424.py 2000/03/10 23:17:19 1.1 --- cp424.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP424.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP424.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0004: 0x009c, # SELECT 0x0005: 0x0009, # HORIZONTAL TABULATION --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0004: 0x009c, # SELECT 0x0005: 0x0009, # HORIZONTAL TABULATION *************** *** 274,278 **** 0x00fe: None, # UNDEFINED 0x00ff: 0x009f, # EIGHT ONES ! } ### Encoding Map --- 274,278 ---- 0x00fe: None, # UNDEFINED 0x00ff: 0x009f, # EIGHT ONES ! }) ### Encoding Map Index: cp437.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp437.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp437.py 2000/03/10 23:17:20 1.1 --- cp437.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP437.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP437.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp500.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp500.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp500.py 2000/03/10 23:17:20 1.1 --- cp500.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP500.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP500.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION *************** *** 274,278 **** 0x00fe: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE 0x00ff: 0x009f, # CONTROL ! } ### Encoding Map --- 274,278 ---- 0x00fe: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE 0x00ff: 0x009f, # CONTROL ! }) ### Encoding Map Index: cp737.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp737.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp737.py 2000/03/10 23:17:20 1.1 --- cp737.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP737.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP737.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x0391, # GREEK CAPITAL LETTER ALPHA 0x0081: 0x0392, # GREEK CAPITAL LETTER BETA --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x0391, # GREEK CAPITAL LETTER ALPHA 0x0081: 0x0392, # GREEK CAPITAL LETTER BETA *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp775.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp775.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp775.py 2000/03/10 23:17:20 1.1 --- cp775.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP775.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP775.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x0106, # LATIN CAPITAL LETTER C WITH ACUTE 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x0106, # LATIN CAPITAL LETTER C WITH ACUTE 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp850.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp850.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp850.py 2000/03/10 23:17:20 1.1 --- cp850.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP850.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP850.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp852.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp852.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp852.py 2000/03/10 23:17:20 1.1 --- cp852.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP852.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP852.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp855.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp855.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp855.py 2000/03/10 23:17:20 1.1 --- cp855.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP855.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP855.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x0452, # CYRILLIC SMALL LETTER DJE 0x0081: 0x0402, # CYRILLIC CAPITAL LETTER DJE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x0452, # CYRILLIC SMALL LETTER DJE 0x0081: 0x0402, # CYRILLIC CAPITAL LETTER DJE *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp856.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp856.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** cp856.py 2000/07/16 12:04:30 1.2 --- cp856.py 2001/01/03 21:29:13 1.3 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP856.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP856.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x05d0, # HEBREW LETTER ALEF 0x0081: 0x05d1, # HEBREW LETTER BET --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x05d0, # HEBREW LETTER ALEF 0x0081: 0x05d1, # HEBREW LETTER BET *************** *** 121,128 **** 0x00d1: None, # UNDEFINED 0x00d2: None, # UNDEFINED ! 0x00d3: None, # UNDEFINED 0x00d4: None, # UNDEFINED 0x00d5: None, # UNDEFINED ! 0x00d6: None, # UNDEFINED 0x00d7: None, # UNDEFINED 0x00d8: None, # UNDEFINED --- 121,128 ---- 0x00d1: None, # UNDEFINED 0x00d2: None, # UNDEFINED ! 0x00d3: None, # UNDEFINEDS 0x00d4: None, # UNDEFINED 0x00d5: None, # UNDEFINED ! 0x00d6: None, # UNDEFINEDE 0x00d7: None, # UNDEFINED 0x00d8: None, # UNDEFINED *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp857.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp857.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp857.py 2000/03/10 23:17:20 1.1 --- cp857.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP857.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP857.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 165,169 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 165,169 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp860.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp860.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp860.py 2000/03/10 23:17:21 1.1 --- cp860.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP860.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP860.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp861.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp861.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp861.py 2000/03/10 23:17:21 1.1 --- cp861.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP861.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP861.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp862.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp862.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp862.py 2000/03/10 23:17:21 1.1 --- cp862.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP862.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP862.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x05d0, # HEBREW LETTER ALEF 0x0081: 0x05d1, # HEBREW LETTER BET --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x05d0, # HEBREW LETTER ALEF 0x0081: 0x05d1, # HEBREW LETTER BET *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp863.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp863.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp863.py 2000/03/10 23:17:21 1.1 --- cp863.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP863.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP863.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp864.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp864.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp864.py 2000/03/10 23:17:21 1.1 --- cp864.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP864.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP864.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0025: 0x066a, # ARABIC PERCENT SIGN 0x0080: 0x00b0, # DEGREE SIGN --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0025: 0x066a, # ARABIC PERCENT SIGN 0x0080: 0x00b0, # DEGREE SIGN *************** *** 164,168 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: None, # UNDEFINED ! } ### Encoding Map --- 164,168 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: None, # UNDEFINED ! }) ### Encoding Map Index: cp865.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp865.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp865.py 2000/03/10 23:17:21 1.1 --- cp865.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP865.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP865.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp866.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp866.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp866.py 2000/03/10 23:17:21 1.1 --- cp866.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP866.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP866.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x0410, # CYRILLIC CAPITAL LETTER A 0x0081: 0x0411, # CYRILLIC CAPITAL LETTER BE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x0410, # CYRILLIC CAPITAL LETTER A 0x0081: 0x0411, # CYRILLIC CAPITAL LETTER BE *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp869.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp869.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp869.py 2000/03/10 23:17:21 1.1 --- cp869.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP869.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP869.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: None, # UNDEFINED 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: None, # UNDEFINED 0x0081: None, # UNDEFINED *************** *** 166,170 **** 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x25a0, # BLACK SQUARE 0x00ff: 0x00a0, # NO-BREAK SPACE ! }) ### Encoding Map Index: cp874.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp874.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp874.py 2000/03/10 23:17:21 1.1 --- cp874.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP874.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP874.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x20ac, # EURO SIGN 0x0081: None, # UNDEFINED *************** *** 165,169 **** 0x00fe: None, # UNDEFINED 0x00ff: None, # UNDEFINED ! } ### Encoding Map --- 165,169 ---- 0x00fe: None, # UNDEFINED 0x00ff: None, # UNDEFINED ! }) ### Encoding Map Index: cp875.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp875.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cp875.py 2000/03/10 23:17:21 1.1 --- cp875.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CP875.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CP875.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0004: 0x009c, # CONTROL 0x0005: 0x0009, # HORIZONTAL TABULATION *************** *** 275,279 **** 0x00fe: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK 0x00ff: 0x009f, # CONTROL ! } ### Encoding Map --- 275,279 ---- 0x00fe: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK 0x00ff: 0x009f, # CONTROL ! }) ### Encoding Map Index: iso8859_1.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_1.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_1.py 2000/03/10 23:17:22 1.1 --- iso8859_1.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-1.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-1.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 23,30 **** class StreamWriter(Codec,codecs.StreamWriter): ! ! def __init__(self,stream,errors='strict'): ! ! codecs.StreamWriter.__init__(self,strict,errors) class StreamReader(Codec,codecs.StreamReader): --- 23,27 ---- class StreamWriter(Codec,codecs.StreamWriter): ! pass class StreamReader(Codec,codecs.StreamReader): *************** *** 38,45 **** ### Decoding Map - - decoding_map = { ! } ### Encoding Map --- 35,42 ---- ### Decoding Map ! decoding_map = codecs.make_identity_dict(range(256)) ! decoding_map.update({ ! }) ### Encoding Map Index: iso8859_10.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_10.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_10.py 2000/03/10 23:17:22 1.1 --- iso8859_10.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-10.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-10.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x0104, # LATIN CAPITAL LETTER A WITH OGONEK 0x00a2: 0x0112, # LATIN CAPITAL LETTER E WITH MACRON --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x0104, # LATIN CAPITAL LETTER A WITH OGONEK 0x00a2: 0x0112, # LATIN CAPITAL LETTER E WITH MACRON *************** *** 84,88 **** 0x00f9: 0x0173, # LATIN SMALL LETTER U WITH OGONEK 0x00ff: 0x0138, # LATIN SMALL LETTER KRA ! } ### Encoding Map --- 84,88 ---- 0x00f9: 0x0173, # LATIN SMALL LETTER U WITH OGONEK 0x00ff: 0x0138, # LATIN SMALL LETTER KRA ! }) ### Encoding Map Index: iso8859_13.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_13.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_13.py 2000/03/10 23:17:22 1.1 --- iso8859_13.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-13.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-13.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x201d, # RIGHT DOUBLE QUOTATION MARK 0x00a5: 0x201e, # DOUBLE LOW-9 QUOTATION MARK --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x201d, # RIGHT DOUBLE QUOTATION MARK 0x00a5: 0x201e, # DOUBLE LOW-9 QUOTATION MARK *************** *** 94,98 **** 0x00fe: 0x017e, # LATIN SMALL LETTER Z WITH CARON 0x00ff: 0x2019, # RIGHT SINGLE QUOTATION MARK ! } ### Encoding Map --- 94,98 ---- 0x00fe: 0x017e, # LATIN SMALL LETTER Z WITH CARON 0x00ff: 0x2019, # RIGHT SINGLE QUOTATION MARK ! }) ### Encoding Map Index: iso8859_14.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_14.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_14.py 2000/03/10 23:17:22 1.1 --- iso8859_14.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-14.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-14.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x1e02, # LATIN CAPITAL LETTER B WITH DOT ABOVE 0x00a2: 0x1e03, # LATIN SMALL LETTER B WITH DOT ABOVE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x1e02, # LATIN CAPITAL LETTER B WITH DOT ABOVE 0x00a2: 0x1e03, # LATIN SMALL LETTER B WITH DOT ABOVE *************** *** 69,73 **** 0x00f7: 0x1e6b, # LATIN SMALL LETTER T WITH DOT ABOVE 0x00fe: 0x0177, # LATIN SMALL LETTER Y WITH CIRCUMFLEX ! } ### Encoding Map --- 69,73 ---- 0x00f7: 0x1e6b, # LATIN SMALL LETTER T WITH DOT ABOVE 0x00fe: 0x0177, # LATIN SMALL LETTER Y WITH CIRCUMFLEX ! }) ### Encoding Map Index: iso8859_15.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_15.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_15.py 2000/03/10 23:17:22 1.1 --- iso8859_15.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-15.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-15.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a4: 0x20ac, # EURO SIGN 0x00a6: 0x0160, # LATIN CAPITAL LETTER S WITH CARON --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a4: 0x20ac, # EURO SIGN 0x00a6: 0x0160, # LATIN CAPITAL LETTER S WITH CARON *************** *** 46,50 **** 0x00bd: 0x0153, # LATIN SMALL LIGATURE OE 0x00be: 0x0178, # LATIN CAPITAL LETTER Y WITH DIAERESIS ! } ### Encoding Map --- 46,50 ---- 0x00bd: 0x0153, # LATIN SMALL LIGATURE OE 0x00be: 0x0178, # LATIN CAPITAL LETTER Y WITH DIAERESIS ! }) ### Encoding Map Index: iso8859_2.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_2.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_2.py 2000/03/10 23:17:22 1.1 --- iso8859_2.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-2.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-2.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x0104, # LATIN CAPITAL LETTER A WITH OGONEK 0x00a2: 0x02d8, # BREVE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x0104, # LATIN CAPITAL LETTER A WITH OGONEK 0x00a2: 0x02d8, # BREVE *************** *** 95,99 **** 0x00fe: 0x0163, # LATIN SMALL LETTER T WITH CEDILLA 0x00ff: 0x02d9, # DOT ABOVE ! } ### Encoding Map --- 95,99 ---- 0x00fe: 0x0163, # LATIN SMALL LETTER T WITH CEDILLA 0x00ff: 0x02d9, # DOT ABOVE ! }) ### Encoding Map Index: iso8859_3.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_3.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_3.py 2000/03/10 23:17:22 1.1 --- iso8859_3.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-3.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-3.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,43 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x0126, # LATIN CAPITAL LETTER H WITH STROKE 0x00a2: 0x02d8, # BREVE 0x00a6: 0x0124, # LATIN CAPITAL LETTER H WITH CIRCUMFLEX 0x00a9: 0x0130, # LATIN CAPITAL LETTER I WITH DOT ABOVE --- 35,44 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x0126, # LATIN CAPITAL LETTER H WITH STROKE 0x00a2: 0x02d8, # BREVE + 0x00a5: None, 0x00a6: 0x0124, # LATIN CAPITAL LETTER H WITH CIRCUMFLEX 0x00a9: 0x0130, # LATIN CAPITAL LETTER I WITH DOT ABOVE *************** *** 45,48 **** --- 46,50 ---- 0x00ab: 0x011e, # LATIN CAPITAL LETTER G WITH BREVE 0x00ac: 0x0134, # LATIN CAPITAL LETTER J WITH CIRCUMFLEX + 0x00ae: None, 0x00af: 0x017b, # LATIN CAPITAL LETTER Z WITH DOT ABOVE 0x00b1: 0x0127, # LATIN SMALL LETTER H WITH STROKE *************** *** 52,64 **** --- 54,71 ---- 0x00bb: 0x011f, # LATIN SMALL LETTER G WITH BREVE 0x00bc: 0x0135, # LATIN SMALL LETTER J WITH CIRCUMFLEX + 0x00be: None, 0x00bf: 0x017c, # LATIN SMALL LETTER Z WITH DOT ABOVE + 0x00c3: None, 0x00c5: 0x010a, # LATIN CAPITAL LETTER C WITH DOT ABOVE 0x00c6: 0x0108, # LATIN CAPITAL LETTER C WITH CIRCUMFLEX + 0x00d0: None, 0x00d5: 0x0120, # LATIN CAPITAL LETTER G WITH DOT ABOVE 0x00d8: 0x011c, # LATIN CAPITAL LETTER G WITH CIRCUMFLEX 0x00dd: 0x016c, # LATIN CAPITAL LETTER U WITH BREVE 0x00de: 0x015c, # LATIN CAPITAL LETTER S WITH CIRCUMFLEX + 0x00e3: None, 0x00e5: 0x010b, # LATIN SMALL LETTER C WITH DOT ABOVE 0x00e6: 0x0109, # LATIN SMALL LETTER C WITH CIRCUMFLEX + 0x00f0: None, 0x00f5: 0x0121, # LATIN SMALL LETTER G WITH DOT ABOVE 0x00f8: 0x011d, # LATIN SMALL LETTER G WITH CIRCUMFLEX *************** *** 66,70 **** 0x00fe: 0x015d, # LATIN SMALL LETTER S WITH CIRCUMFLEX 0x00ff: 0x02d9, # DOT ABOVE ! } ### Encoding Map --- 73,77 ---- 0x00fe: 0x015d, # LATIN SMALL LETTER S WITH CIRCUMFLEX 0x00ff: 0x02d9, # DOT ABOVE ! }) ### Encoding Map Index: iso8859_4.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_4.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_4.py 2000/03/10 23:17:22 1.1 --- iso8859_4.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-4.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-4.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x0104, # LATIN CAPITAL LETTER A WITH OGONEK 0x00a2: 0x0138, # LATIN SMALL LETTER KRA --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x0104, # LATIN CAPITAL LETTER A WITH OGONEK 0x00a2: 0x0138, # LATIN SMALL LETTER KRA *************** *** 88,92 **** 0x00fe: 0x016b, # LATIN SMALL LETTER U WITH MACRON 0x00ff: 0x02d9, # DOT ABOVE ! } ### Encoding Map --- 88,92 ---- 0x00fe: 0x016b, # LATIN SMALL LETTER U WITH MACRON 0x00ff: 0x02d9, # DOT ABOVE ! }) ### Encoding Map Index: iso8859_5.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_5.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_5.py 2000/03/10 23:17:22 1.1 --- iso8859_5.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-5.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-5.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x0401, # CYRILLIC CAPITAL LETTER IO 0x00a2: 0x0402, # CYRILLIC CAPITAL LETTER DJE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x0401, # CYRILLIC CAPITAL LETTER IO 0x00a2: 0x0402, # CYRILLIC CAPITAL LETTER DJE *************** *** 132,136 **** 0x00fe: 0x045e, # CYRILLIC SMALL LETTER SHORT U 0x00ff: 0x045f, # CYRILLIC SMALL LETTER DZHE ! } ### Encoding Map --- 132,136 ---- 0x00fe: 0x045e, # CYRILLIC SMALL LETTER SHORT U 0x00ff: 0x045f, # CYRILLIC SMALL LETTER DZHE ! }) ### Encoding Map Index: iso8859_6.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_6.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_6.py 2000/03/10 23:17:22 1.1 --- iso8859_6.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-6.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-6.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,44 **** ### Decoding Map - - decoding_map = { 0x00ac: 0x060c, # ARABIC COMMA 0x00bb: 0x061b, # ARABIC SEMICOLON 0x00bf: 0x061f, # ARABIC QUESTION MARK 0x00c1: 0x0621, # ARABIC LETTER HAMZA 0x00c2: 0x0622, # ARABIC LETTER ALEF WITH MADDA ABOVE --- 35,71 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ + 0x00a1: None, + 0x00a2: None, + 0x00a3: None, + 0x00a5: None, + 0x00a6: None, + 0x00a7: None, + 0x00a8: None, + 0x00a9: None, + 0x00aa: None, + 0x00ab: None, 0x00ac: 0x060c, # ARABIC COMMA + 0x00ae: None, + 0x00af: None, + 0x00b0: None, + 0x00b1: None, + 0x00b2: None, + 0x00b3: None, + 0x00b4: None, + 0x00b5: None, + 0x00b6: None, + 0x00b7: None, + 0x00b8: None, + 0x00b9: None, + 0x00ba: None, 0x00bb: 0x061b, # ARABIC SEMICOLON + 0x00bc: None, + 0x00bd: None, + 0x00be: None, 0x00bf: 0x061f, # ARABIC QUESTION MARK + 0x00c0: None, 0x00c1: 0x0621, # ARABIC LETTER HAMZA 0x00c2: 0x0622, # ARABIC LETTER ALEF WITH MADDA ABOVE *************** *** 67,70 **** --- 94,102 ---- 0x00d9: 0x0639, # ARABIC LETTER AIN 0x00da: 0x063a, # ARABIC LETTER GHAIN + 0x00db: None, + 0x00dc: None, + 0x00dd: None, + 0x00de: None, + 0x00df: None, 0x00e0: 0x0640, # ARABIC TATWEEL 0x00e1: 0x0641, # ARABIC LETTER FEH *************** *** 86,90 **** 0x00f1: 0x0651, # ARABIC SHADDA 0x00f2: 0x0652, # ARABIC SUKUN ! } ### Encoding Map --- 118,135 ---- 0x00f1: 0x0651, # ARABIC SHADDA 0x00f2: 0x0652, # ARABIC SUKUN ! 0x00f3: None, ! 0x00f4: None, ! 0x00f5: None, ! 0x00f6: None, ! 0x00f7: None, ! 0x00f8: None, ! 0x00f9: None, ! 0x00fa: None, ! 0x00fb: None, ! 0x00fc: None, ! 0x00fd: None, ! 0x00fe: None, ! 0x00ff: None, ! }) ### Encoding Map Index: iso8859_7.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_7.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_7.py 2000/03/10 23:17:23 1.1 --- iso8859_7.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-7.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-7.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,43 **** ### Decoding Map - - decoding_map = { 0x00a1: 0x2018, # LEFT SINGLE QUOTATION MARK 0x00a2: 0x2019, # RIGHT SINGLE QUOTATION MARK 0x00af: 0x2015, # HORIZONTAL BAR 0x00b4: 0x0384, # GREEK TONOS --- 35,47 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00a1: 0x2018, # LEFT SINGLE QUOTATION MARK 0x00a2: 0x2019, # RIGHT SINGLE QUOTATION MARK + 0x00a4: None, + 0x00a5: None, + 0x00aa: None, + 0x00ae: None, 0x00af: 0x2015, # HORIZONTAL BAR 0x00b4: 0x0384, # GREEK TONOS *************** *** 68,71 **** --- 72,76 ---- 0x00d0: 0x03a0, # GREEK CAPITAL LETTER PI 0x00d1: 0x03a1, # GREEK CAPITAL LETTER RHO + 0x00d2: None, 0x00d3: 0x03a3, # GREEK CAPITAL LETTER SIGMA 0x00d4: 0x03a4, # GREEK CAPITAL LETTER TAU *************** *** 112,116 **** 0x00fd: 0x03cd, # GREEK SMALL LETTER UPSILON WITH TONOS 0x00fe: 0x03ce, # GREEK SMALL LETTER OMEGA WITH TONOS ! } ### Encoding Map --- 117,122 ---- 0x00fd: 0x03cd, # GREEK SMALL LETTER UPSILON WITH TONOS 0x00fe: 0x03ce, # GREEK SMALL LETTER OMEGA WITH TONOS ! 0x00ff: None, ! }) ### Encoding Map Index: iso8859_8.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_8.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_8.py 2000/03/10 23:17:23 1.1 --- iso8859_8.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-8.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-8.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,44 **** ### Decoding Map - - decoding_map = { 0x00aa: 0x00d7, # MULTIPLICATION SIGN - 0x00af: 0x203e, # OVERLINE 0x00ba: 0x00f7, # DIVISION SIGN 0x00df: 0x2017, # DOUBLE LOW LINE 0x00e0: 0x05d0, # HEBREW LETTER ALEF --- 35,76 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ + 0x00a1: None, 0x00aa: 0x00d7, # MULTIPLICATION SIGN 0x00ba: 0x00f7, # DIVISION SIGN + 0x00bf: None, + 0x00c0: None, + 0x00c1: None, + 0x00c2: None, + 0x00c3: None, + 0x00c4: None, + 0x00c5: None, + 0x00c6: None, + 0x00c7: None, + 0x00c8: None, + 0x00c9: None, + 0x00ca: None, + 0x00cb: None, + 0x00cc: None, + 0x00cd: None, + 0x00ce: None, + 0x00cf: None, + 0x00d0: None, + 0x00d1: None, + 0x00d2: None, + 0x00d3: None, + 0x00d4: None, + 0x00d5: None, + 0x00d6: None, + 0x00d7: None, + 0x00d8: None, + 0x00d9: None, + 0x00da: None, + 0x00db: None, + 0x00dc: None, + 0x00dd: None, + 0x00de: None, 0x00df: 0x2017, # DOUBLE LOW LINE 0x00e0: 0x05d0, # HEBREW LETTER ALEF *************** *** 69,73 **** 0x00f9: 0x05e9, # HEBREW LETTER SHIN 0x00fa: 0x05ea, # HEBREW LETTER TAV ! } ### Encoding Map --- 101,110 ---- 0x00f9: 0x05e9, # HEBREW LETTER SHIN 0x00fa: 0x05ea, # HEBREW LETTER TAV ! 0x00fb: None, ! 0x00fc: None, ! 0x00fd: 0x200e, # LEFT-TO-RIGHT MARK ! 0x00fe: 0x200f, # RIGHT-TO-LEFT MARK ! 0x00ff: None, ! }) ### Encoding Map Index: iso8859_9.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/iso8859_9.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** iso8859_9.py 2000/03/10 23:17:23 1.1 --- iso8859_9.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from '8859-9.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from '8859-9.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x00d0: 0x011e, # LATIN CAPITAL LETTER G WITH BREVE 0x00dd: 0x0130, # LATIN CAPITAL LETTER I WITH DOT ABOVE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x00d0: 0x011e, # LATIN CAPITAL LETTER G WITH BREVE 0x00dd: 0x0130, # LATIN CAPITAL LETTER I WITH DOT ABOVE *************** *** 44,48 **** 0x00fd: 0x0131, # LATIN SMALL LETTER DOTLESS I 0x00fe: 0x015f, # LATIN SMALL LETTER S WITH CEDILLA ! } ### Encoding Map --- 44,48 ---- 0x00fd: 0x0131, # LATIN SMALL LETTER DOTLESS I 0x00fe: 0x015f, # LATIN SMALL LETTER S WITH CEDILLA ! }) ### Encoding Map Index: koi8_r.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/koi8_r.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** koi8_r.py 2000/03/10 23:17:23 1.1 --- koi8_r.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'KOI8-R.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'KOI8-R.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x2500, # BOX DRAWINGS LIGHT HORIZONTAL 0x0081: 0x2502, # BOX DRAWINGS LIGHT VERTICAL --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x2500, # BOX DRAWINGS LIGHT HORIZONTAL 0x0081: 0x2502, # BOX DRAWINGS LIGHT VERTICAL *************** *** 166,170 **** 0x00fe: 0x0427, # CYRILLIC CAPITAL LETTER CHE 0x00ff: 0x042a, # CYRILLIC CAPITAL LETTER HARD SIGN ! } ### Encoding Map --- 166,170 ---- 0x00fe: 0x0427, # CYRILLIC CAPITAL LETTER CHE 0x00ff: 0x042a, # CYRILLIC CAPITAL LETTER HARD SIGN ! }) ### Encoding Map Index: mac_cyrillic.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/mac_cyrillic.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mac_cyrillic.py 2000/03/10 23:17:23 1.1 --- mac_cyrillic.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'CYRILLIC.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'CYRILLIC.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x0410, # CYRILLIC CAPITAL LETTER A 0x0081: 0x0411, # CYRILLIC CAPITAL LETTER BE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x0410, # CYRILLIC CAPITAL LETTER A 0x0081: 0x0411, # CYRILLIC CAPITAL LETTER BE *************** *** 161,165 **** 0x00fe: 0x044e, # CYRILLIC SMALL LETTER YU 0x00ff: 0x00a4, # CURRENCY SIGN ! } ### Encoding Map --- 161,165 ---- 0x00fe: 0x044e, # CYRILLIC SMALL LETTER YU 0x00ff: 0x00a4, # CURRENCY SIGN ! }) ### Encoding Map Index: mac_greek.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/mac_greek.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mac_greek.py 2000/03/10 23:17:23 1.1 --- mac_greek.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'GREEK.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'GREEK.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00b9, # SUPERSCRIPT ONE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00b9, # SUPERSCRIPT ONE *************** *** 164,168 **** 0x00fe: 0x03b0, # GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS 0x00ff: None, # UNDEFINED ! } ### Encoding Map --- 164,168 ---- 0x00fe: 0x03b0, # GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS 0x00ff: None, # UNDEFINED ! }) ### Encoding Map Index: mac_iceland.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/mac_iceland.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mac_iceland.py 2000/03/10 23:17:23 1.1 --- mac_iceland.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'ICELAND.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'ICELAND.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE *************** *** 160,164 **** 0x00fe: 0x02db, # OGONEK 0x00ff: 0x02c7, # CARON ! } ### Encoding Map --- 160,164 ---- 0x00fe: 0x02db, # OGONEK 0x00ff: 0x02c7, # CARON ! }) ### Encoding Map Index: mac_latin2.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/mac_latin2.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mac_latin2.py 2000/03/10 23:17:23 1.1 --- mac_latin2.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'LATIN2.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'LATIN2.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x0100, # LATIN CAPITAL LETTER A WITH MACRON --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x0100, # LATIN CAPITAL LETTER A WITH MACRON *************** *** 164,168 **** 0x00fe: 0x0122, # LATIN CAPITAL LETTER G WITH CEDILLA 0x00ff: 0x02c7, # CARON ! } ### Encoding Map --- 164,168 ---- 0x00fe: 0x0122, # LATIN CAPITAL LETTER G WITH CEDILLA 0x00ff: 0x02c7, # CARON ! }) ### Encoding Map Index: mac_roman.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/mac_roman.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mac_roman.py 2000/03/10 23:17:23 1.1 --- mac_roman.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'ROMAN.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'ROMAN.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE *************** *** 161,165 **** 0x00fe: 0x02db, # OGONEK 0x00ff: 0x02c7, # CARON ! } ### Encoding Map --- 161,165 ---- 0x00fe: 0x02db, # OGONEK 0x00ff: 0x02c7, # CARON ! }) ### Encoding Map Index: mac_turkish.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/encodings/mac_turkish.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mac_turkish.py 2000/03/10 23:17:24 1.1 --- mac_turkish.py 2001/01/03 21:29:13 1.2 *************** *** 1,8 **** ! """ Python Character Mapping Codec generated from 'TURKISH.TXT'. - Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" --- 1,8 ---- ! """ Python Character Mapping Codec generated from 'TURKISH.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + (c) Copyright 2000 Guido van Rossum. """#" *************** *** 35,41 **** ### Decoding Map - - decoding_map = { 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE --- 35,41 ---- ### Decoding Map + decoding_map = codecs.make_identity_dict(range(256)) + decoding_map.update({ 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS 0x0081: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE *************** *** 161,165 **** 0x00fe: 0x02db, # OGONEK 0x00ff: 0x02c7, # CARON ! } ### Encoding Map --- 161,165 ---- 0x00fe: 0x02db, # OGONEK 0x00ff: 0x02c7, # CARON ! }) ### Encoding Map
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4