This commit is contained in:
Kovid Goyal
2017-04-28 08:31:07 +05:30
parent f5d957e8ff
commit 898a8075be
4 changed files with 14 additions and 8 deletions

View File

@@ -72,6 +72,10 @@ class TestParser(BaseTest):
self.ae(str(s.line(0)), '123 ')
def test_charsets(self):
s = self.create_screen()
pb = partial(self.parse_bytes_dump, s)
pb(b'\xc3')
pb(b'\xa1', ('draw', b'\xc3\xa1'.decode('utf-8')))
s = self.create_screen()
pb = partial(self.parse_bytes_dump, s)
pb('\033)0\x0e/_', ('screen_designate_charset', 1, ord('0')), ('screen_change_charset', 1), '/_')