[Python-bugs-list] [ python-Bugs-607302 ] Missing encoding alias for cp1256

noreply@sourceforge.net noreply@sourceforge.net
Wed, 11 Sep 2002 09:30:32 -0700


Bugs item #607302, was opened at 2002-09-10 15:13
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=607302&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Rayed Al-Rashed (rayed)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing encoding alias for cp1256

Initial Comment:
windows-1256 is a very important alias for cp1256
it is missing from python2.2/encodings/aliases.py

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-09-11 18:30

Message:
Logged In: YES 
user_id=21627

In addition to manually editing the file in your
installation, you can also add the alias programmatically,
to achieve best portability.

I have now added this to aliases.py 1.11.6.1 as well, so it
will be fixed in Python 2.2.2.

----------------------------------------------------------------------

Comment By: Christos Georgiou (tzot)
Date: 2002-09-10 17:35

Message:
Logged In: YES 
user_id=539787

For your use, you can edit aliases.py.
It is corrected in current CVS:

Python 2.3a0 (#26, Sep  4 2002, 17:39:22) [C] on irix646
Type "help", "copyright", "credits" or "license" for more
information.
>>> 'hello'.decode("windows-1256")
u'hello'

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=607302&group_id=5470