Bugs item #1251921, was opened at 2005-08-04 09:11
Message generated for change (Comment added) made by liturgist
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1251921&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unicode
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: liturgist (liturgist)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Fail codecs.lookup() on 'mbcs' and 'tactis'

Initial Comment:
$ python
Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import codecs
>>> codecs.lookup('ascii')
(<built-in function ascii_encode>, <built-in function
ascii_decode>, <class encodings.ascii.StreamReader at
0xb7f1302c>, <class encodings.ascii.StreamWriter at
0xb7f82fbc>)
>>> codecs.lookup('mbcs')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/encodings/__init__.py", line
96, in search_function
    globals(), locals(), _import_tail)
  File "/usr/lib/python2.4/encodings/mbcs.py", line 14,
in ?
    class Codec(codecs.Codec):
  File "/usr/lib/python2.4/encodings/mbcs.py", line 18,
in Codec
    encode = codecs.mbcs_encode
AttributeError: 'module' object has no attribute
'mbcs_encode'
>>> codecs.lookup('tactis')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
LookupError: unknown encoding: tactis


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

>Comment By: liturgist (liturgist)
Date: 2005-08-04 10:00

Message:
Logged In: YES 
user_id=197677

If 'mbcs' is Windows-only, then why does it appear in the
list of registered codecs in encodings.aliases.aliases on
the Linux platform?  Shouldn't it not be registered on other
platforms?

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

Comment By: liturgist (liturgist)
Date: 2005-08-04 09:55

Message:
Logged In: YES 
user_id=197677

UTF-8 is an MBCS encoding in that is is a "multiple byte
character set", right? :-)  UTF-16 is an MSCS; multiple
short character set.

There appears to have been some discussion on 'tactis' and
'tactis260' earlier in bug 854511.

http://mail.python.org/pipermail/python-bugs-list/2003-December/021394.html


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

Comment By: M.-A. Lemburg (lemburg)
Date: 2005-08-04 09:38

Message:
Logged In: YES 
user_id=38388

mbcs is only available on Windows.

I'm not sure what happened to the tactis codec - it's
possible that it never got checked in.

Do you have a reference for the tactis encoding ?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1251921&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to