Fail codecs.lookup() on 'mbcs' and 'tactis'

P

Paul Watson

$ 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.(<built-in function ascii_encode>, <built-in function ascii_decode>,
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'Traceback (most recent call last):
File "<stdin>", line 1, in ?
LookupError: unknown encoding: tactis
 
J

jepler

I don't know what 'tactis' is, but 'mbcs' is not a portable character set name.
It's a special character set name on win32, which refers to some system-specific
multibyte character set.

I don't think these "failures" are a Python bug.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFC8itgJd01MZaTXX0RAsCXAJ9putcYKQmJh0JtEpz3t55ZJUw8WgCeNeVo
45dOp2LG6mfqQ2jw+4yHUoQ=
=JqsK
-----END PGP SIGNATURE-----
 
R

Richard Brodie

I don't know what 'tactis' is, but 'mbcs' is not a portable character set name.
It's a special character set name on win32, which refers to some system-specific
multibyte character set.

I don't think these "failures" are a Python bug.

I suppose, for consistency, it should ideally raise LookupError, though
 
J

jepler

I suppose, for consistency, it should ideally raise LookupError, though

Maybe so. If that was the poster's point, then I completely missed it.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFC8kXcJd01MZaTXX0RAq23AJ9jjXX2kqSUtxdm6JagR5o6Av8duQCeOEbD
5mK5Ynnx4M8E21sDpHUfLVA=
=/iJo
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top