components/python/python35/patches/09-encoding-alias.patch
changeset 4912 0b79e9575718
equal deleted inserted replaced
4911:6590570733a1 4912:0b79e9575718
       
     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.5.0rc2/Lib/encodings/aliases.py.~1~	2015-08-25 10:19:12.000000000 -0700
       
     5 +++ Python-3.5.0rc2/Lib/encodings/aliases.py	2015-09-02 12:27:47.142334449 -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 @@ -479,6 +481,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 @@ -498,6 +501,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