Fix designate_charset without change_charset not taking effect

This commit is contained in:
Kovid Goyal
2016-12-13 12:43:20 +05:30
parent a568f73e77
commit 3c9d4dfb90
2 changed files with 9 additions and 0 deletions

View File

@@ -75,6 +75,10 @@ class TestParser(BaseTest):
pb('\033)0\x0e/_', ('screen_designate_charset', 1, ord('0')), ('screen_change_charset', 1), '/_')
self.ae(str(s.line(0)), '/\xa0 ')
pb('\033%G_', ('screen_use_latin1', 0), '_')
s = self.create_screen()
pb = partial(self.parse_bytes_dump, s)
pb('\033(0/_', ('screen_designate_charset', 0, ord('0')), '/_')
self.ae(str(s.line(0)), '/\xa0 ')
def test_csi_codes(self):
s = self.create_screen()