New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail codecs.lookup() on 'mbcs' and 'tactis' #42252
Comments
$ 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 |
Logged In: YES mbcs is only available on Windows. I'm not sure what happened to the tactis codec - it's Do you have a reference for the tactis encoding ? |
Logged In: YES UTF-8 is an MBCS encoding in that is is a "multiple byte There appears to have been some discussion on 'tactis' and http://mail.python.org/pipermail/python-bugs-list/2003-December/021394.html |
Logged In: YES If 'mbcs' is Windows-only, then why does it appear in the |
Logged In: YES Yes, UTF-8 is a multi-byte character set, but no, UTF-8 and http://docs.python.org/lib/standard-encodings.html for the documentation. encodings.aliases.aliases is no tactis was never part of a Python release, so its lack is Closing this report as invalid. |
Logged In: YES Reopened: this is indeed a bug - the tactis codec is Either the codec will have to be added, or the alias entry |
Logged In: YES Where is bug 854511 regarding Thai encodings? The URL has http://mail.python.org/pipermail/python-bugs-list/2003-December/021394.html |
Logged In: YES It's not a bug, it's a feature request, and it's at I have rejected the request. |
The 'tactis' codec is still missing, but it's not mentioned in docs I'll close this one soon unless someone voices disagreement. |
It looks like few people need this codec (no message since 2005), so I Reopen this issue if you need this codec. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: