From d7e4da852e47c1b17665491049b8410446d2309b Mon Sep 17 00:00:00 2001 From: Andrew Kay Date: Fri, 26 Feb 2021 22:40:00 -0600 Subject: [PATCH] Temporary workaround for GE order --- oec/tn3270.py | 4 ++++ requirements.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/oec/tn3270.py b/oec/tn3270.py index 2c4fa04..19af5a4 100644 --- a/oec/tn3270.py +++ b/oec/tn3270.py @@ -221,6 +221,10 @@ class TN3270Session(Session): if byte == 0x40 and cell.formatting is not None and cell.formatting.reverse: return encode_ascii_character(ord('#')) + # TODO: Temporary workaround until character set support is added. + if cell.character_set is not None: + return encode_ascii_character(ord('ß')) + return encode_ebcdic_character(byte) def _format_message_area(self): diff --git a/requirements.txt b/requirements.txt index 25468e9..0ca5fa2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ ptyprocess==0.7.0 pycoax==0.6.0 pyserial==3.5 pyte==0.8.0 -pytn3270==0.8.0 +pytn3270==0.9.0 sliplib==0.6.2 sortedcontainers==2.3.0 wcwidth==0.2.5