components/python/python34/patches/09-encoding-alias.patch
branchs11-update
changeset 3778 35735ffdda43
equal deleted inserted replaced
3777:68aef260e079 3778:35735ffdda43
       
     1 Add missing encoding aliases.  It may be contributed upstream at some point,
       
     2 but the suitability (or lack thereof) has not yet been determined.
       
     3 
       
     4 --- Python-3.4.0/Lib/encodings/aliases.py.~1~	2014-03-16 19:31:29.000000000 -0700
       
     5 +++ Python-3.4.0/Lib/encodings/aliases.py	2014-03-17 13:26:52.837734374 -0700
       
     6 @@ -79,6 +79,7 @@
       
     7  
       
     8      # cp1251 codec
       
     9      '1251'               : 'cp1251',
       
    10 +    'ansi_1251'          : 'cp1251',
       
    11      'windows_1251'       : 'cp1251',
       
    12  
       
    13      # cp1252 codec
       
    14 @@ -233,6 +234,7 @@
       
    15      'u_jis'              : 'euc_jp',
       
    16  
       
    17      # euc_kr codec
       
    18 +    '5601'               : 'euc_kr',
       
    19      'euckr'              : 'euc_kr',
       
    20      'korean'             : 'euc_kr',
       
    21      'ksc5601'            : 'euc_kr',
       
    22 @@ -474,6 +476,7 @@
       
    23      'shiftjis'           : 'shift_jis',
       
    24      'sjis'               : 'shift_jis',
       
    25      's_jis'              : 'shift_jis',
       
    26 +    'pck'                : 'shift_jis',
       
    27  
       
    28      # shift_jis_2004 codec
       
    29      'shiftjis2004'       : 'shift_jis_2004',
       
    30 @@ -493,6 +496,7 @@
       
    31      'tis_620_0'          : 'tis_620',
       
    32      'tis_620_2529_0'     : 'tis_620',
       
    33      'tis_620_2529_1'     : 'tis_620',
       
    34 +    'tis620.2533'        : 'tis_620',
       
    35      'iso_ir_166'         : 'tis_620',
       
    36  
       
    37      # utf_16 codec