Skip to content

Commit

Permalink
disclode iso86659-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Oct 19, 2015
1 parent 17f9f15 commit 0fb9001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion telnetlib3/client.py
Expand Up @@ -357,7 +357,7 @@ def send_charset(self, offered):
try:
codec = codecs.lookup(offer)
except LookupError as err:
self.log.debug('{}'.format(err))
self.log.info('LookupError: {}'.format(err))
else:
if (codec.name == self.env['CHARSET'] or not selected):
self.env['CHARSET'] = codec.name
Expand Down
3 changes: 2 additions & 1 deletion telnetlib3/telopt.py
Expand Up @@ -58,7 +58,8 @@ class TelnetStream:
'UTF-8', 'UTF-16', 'US-ASCII', 'LATIN1', 'BIG5',
'GBK', 'SHIFTJIS', 'GB18030', 'KOI8-R', 'KOI8-U',
) + tuple(
'ISO8859-{}'.format(iso) for iso in range(16)
# "Part 12 was slated for Latin/Devanagari, but abandoned in 1997"
'ISO8859-{}'.format(iso) for iso in range(1, 16) if iso != 12
) + tuple(
'CP{}'.format(cp) for cp in (
154, 437, 500, 737, 775, 850, 852, 855, 856, 857,
Expand Down

0 comments on commit 0fb9001

Please sign in to comment.