[Python-checkins] python/dist/src/Lib/encodings cp500.py, 1.4, 1.5 cp1026.py, 1.4, 1.5 cp037.py, 1.4, 1.5 cp875.py, 1.4, 1.5
lemburg@users.sourceforge.net
lemburg at users.sourceforge.net
Fri Oct 21 16:35:40 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/encodings
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29561
Modified Files:
cp500.py cp1026.py cp037.py cp875.py
Log Message:
Replace the old EBCDIC codecs with new ones using the decoding table.
Index: cp500.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp500.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cp500.py 8 Aug 2002 20:19:19 -0000 1.4
+++ cp500.py 21 Oct 2005 14:35:35 -0000 1.5
@@ -1,9 +1,4 @@
-""" Python Character Mapping Codec generated from 'CP500.TXT' with gencodec.py.
-
-Written by Marc-Andre Lemburg (mal at lemburg.com).
-
-(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
-(c) Copyright 2000 Guido van Rossum.
+""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/EBCDIC/CP500.TXT' with gencodec.py.
"""#"
@@ -19,8 +14,8 @@
[...991 lines suppressed...]
+ 0x00ee: 0x0056, # LATIN SMALL LETTER I WITH CIRCUMFLEX
+ 0x00ef: 0x0057, # LATIN SMALL LETTER I WITH DIAERESIS
+ 0x00f0: 0x008c, # LATIN SMALL LETTER ETH (ICELANDIC)
+ 0x00f1: 0x0049, # LATIN SMALL LETTER N WITH TILDE
+ 0x00f2: 0x00cd, # LATIN SMALL LETTER O WITH GRAVE
+ 0x00f3: 0x00ce, # LATIN SMALL LETTER O WITH ACUTE
+ 0x00f4: 0x00cb, # LATIN SMALL LETTER O WITH CIRCUMFLEX
+ 0x00f5: 0x00cf, # LATIN SMALL LETTER O WITH TILDE
+ 0x00f6: 0x00cc, # LATIN SMALL LETTER O WITH DIAERESIS
+ 0x00f7: 0x00e1, # DIVISION SIGN
+ 0x00f8: 0x0070, # LATIN SMALL LETTER O WITH STROKE
+ 0x00f9: 0x00dd, # LATIN SMALL LETTER U WITH GRAVE
+ 0x00fa: 0x00de, # LATIN SMALL LETTER U WITH ACUTE
+ 0x00fb: 0x00db, # LATIN SMALL LETTER U WITH CIRCUMFLEX
+ 0x00fc: 0x00dc, # LATIN SMALL LETTER U WITH DIAERESIS
+ 0x00fd: 0x008d, # LATIN SMALL LETTER Y WITH ACUTE
+ 0x00fe: 0x008e, # LATIN SMALL LETTER THORN (ICELANDIC)
+ 0x00ff: 0x00df, # LATIN SMALL LETTER Y WITH DIAERESIS
+}
\ No newline at end of file
Index: cp1026.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp1026.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cp1026.py 8 Aug 2002 20:19:18 -0000 1.4
+++ cp1026.py 21 Oct 2005 14:35:35 -0000 1.5
@@ -1,9 +1,4 @@
-""" Python Character Mapping Codec generated from 'CP1026.TXT' with gencodec.py.
-
-Written by Marc-Andre Lemburg (mal at lemburg.com).
-
-(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
-(c) Copyright 2000 Guido van Rossum.
+""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/EBCDIC/CP1026.TXT' with gencodec.py.
"""#"
@@ -19,8 +14,8 @@
[...991 lines suppressed...]
+ 0x00f2: 0x00cd, # LATIN SMALL LETTER O WITH GRAVE
+ 0x00f3: 0x00ce, # LATIN SMALL LETTER O WITH ACUTE
+ 0x00f4: 0x00cb, # LATIN SMALL LETTER O WITH CIRCUMFLEX
+ 0x00f5: 0x00cf, # LATIN SMALL LETTER O WITH TILDE
+ 0x00f6: 0x00a1, # LATIN SMALL LETTER O WITH DIAERESIS
+ 0x00f7: 0x00e1, # DIVISION SIGN
+ 0x00f8: 0x0070, # LATIN SMALL LETTER O WITH STROKE
+ 0x00f9: 0x00dd, # LATIN SMALL LETTER U WITH GRAVE
+ 0x00fa: 0x00de, # LATIN SMALL LETTER U WITH ACUTE
+ 0x00fb: 0x00db, # LATIN SMALL LETTER U WITH CIRCUMFLEX
+ 0x00fc: 0x00e0, # LATIN SMALL LETTER U WITH DIAERESIS
+ 0x00ff: 0x00df, # LATIN SMALL LETTER Y WITH DIAERESIS
+ 0x011e: 0x005a, # LATIN CAPITAL LETTER G WITH BREVE
+ 0x011f: 0x00d0, # LATIN SMALL LETTER G WITH BREVE
+ 0x0130: 0x005b, # LATIN CAPITAL LETTER I WITH DOT ABOVE
+ 0x0131: 0x0079, # LATIN SMALL LETTER DOTLESS I
+ 0x015e: 0x007c, # LATIN CAPITAL LETTER S WITH CEDILLA
+ 0x015f: 0x006a, # LATIN SMALL LETTER S WITH CEDILLA
+}
\ No newline at end of file
Index: cp037.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp037.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cp037.py 8 Aug 2002 20:19:18 -0000 1.4
+++ cp037.py 21 Oct 2005 14:35:35 -0000 1.5
@@ -1,9 +1,4 @@
-""" Python Character Mapping Codec generated from 'CP037.TXT' with gencodec.py.
-
-Written by Marc-Andre Lemburg (mal at lemburg.com).
-
-(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
-(c) Copyright 2000 Guido van Rossum.
+""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/EBCDIC/CP037.TXT' with gencodec.py.
"""#"
@@ -19,8 +14,8 @@
[...991 lines suppressed...]
+ 0x00ee: 0x0056, # LATIN SMALL LETTER I WITH CIRCUMFLEX
+ 0x00ef: 0x0057, # LATIN SMALL LETTER I WITH DIAERESIS
+ 0x00f0: 0x008c, # LATIN SMALL LETTER ETH (ICELANDIC)
+ 0x00f1: 0x0049, # LATIN SMALL LETTER N WITH TILDE
+ 0x00f2: 0x00cd, # LATIN SMALL LETTER O WITH GRAVE
+ 0x00f3: 0x00ce, # LATIN SMALL LETTER O WITH ACUTE
+ 0x00f4: 0x00cb, # LATIN SMALL LETTER O WITH CIRCUMFLEX
+ 0x00f5: 0x00cf, # LATIN SMALL LETTER O WITH TILDE
+ 0x00f6: 0x00cc, # LATIN SMALL LETTER O WITH DIAERESIS
+ 0x00f7: 0x00e1, # DIVISION SIGN
+ 0x00f8: 0x0070, # LATIN SMALL LETTER O WITH STROKE
+ 0x00f9: 0x00dd, # LATIN SMALL LETTER U WITH GRAVE
+ 0x00fa: 0x00de, # LATIN SMALL LETTER U WITH ACUTE
+ 0x00fb: 0x00db, # LATIN SMALL LETTER U WITH CIRCUMFLEX
+ 0x00fc: 0x00dc, # LATIN SMALL LETTER U WITH DIAERESIS
+ 0x00fd: 0x008d, # LATIN SMALL LETTER Y WITH ACUTE
+ 0x00fe: 0x008e, # LATIN SMALL LETTER THORN (ICELANDIC)
+ 0x00ff: 0x00df, # LATIN SMALL LETTER Y WITH DIAERESIS
+}
\ No newline at end of file
Index: cp875.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/cp875.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cp875.py 8 Aug 2002 20:19:19 -0000 1.4
+++ cp875.py 21 Oct 2005 14:35:35 -0000 1.5
@@ -1,9 +1,4 @@
-""" Python Character Mapping Codec generated from 'CP875.TXT' with gencodec.py.
-
-Written by Marc-Andre Lemburg (mal at lemburg.com).
-
-(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
-(c) Copyright 2000 Guido van Rossum.
+""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/EBCDIC/CP875.TXT' with gencodec.py.
"""#"
@@ -19,8 +14,8 @@
[...987 lines suppressed...]
+ 0x03c0: 0x00ad, # GREEK SMALL LETTER PI
+ 0x03c1: 0x00ae, # GREEK SMALL LETTER RHO
+ 0x03c2: 0x00ba, # GREEK SMALL LETTER FINAL SIGMA
+ 0x03c3: 0x00af, # GREEK SMALL LETTER SIGMA
+ 0x03c4: 0x00bb, # GREEK SMALL LETTER TAU
+ 0x03c5: 0x00bc, # GREEK SMALL LETTER UPSILON
+ 0x03c6: 0x00bd, # GREEK SMALL LETTER PHI
+ 0x03c7: 0x00be, # GREEK SMALL LETTER CHI
+ 0x03c8: 0x00bf, # GREEK SMALL LETTER PSI
+ 0x03c9: 0x00cb, # GREEK SMALL LETTER OMEGA
+ 0x03ca: 0x00b4, # GREEK SMALL LETTER IOTA WITH DIALYTIKA
+ 0x03cb: 0x00b8, # GREEK SMALL LETTER UPSILON WITH DIALYTIKA
+ 0x03cc: 0x00b6, # GREEK SMALL LETTER OMICRON WITH TONOS
+ 0x03cd: 0x00b7, # GREEK SMALL LETTER UPSILON WITH TONOS
+ 0x03ce: 0x00b9, # GREEK SMALL LETTER OMEGA WITH TONOS
+ 0x2015: 0x00cf, # HORIZONTAL BAR
+ 0x2018: 0x00ce, # LEFT SINGLE QUOTATION MARK
+ 0x2019: 0x00de, # RIGHT SINGLE QUOTATION MARK
+}
\ No newline at end of file
More information about the Python-checkins
mailing list