From 8d749fbb7e5bccdbd35655b2f2e3a67e377ff222 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Mon, 9 Feb 2026 21:17:04 -0500 Subject: [PATCH] Add missing newline to A2 alphabet table for V3 The V3 A2 table needs newline (ZSCII 13) at code 7, matching viola's implementation. The previous fix only removed the erroneous '<' but didn't add the newline, leaving the table at 24 chars instead of 25. --- src/mudlib/zmachine/zstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mudlib/zmachine/zstring.py b/src/mudlib/zmachine/zstring.py index efdb482..a0e1217 100644 --- a/src/mudlib/zmachine/zstring.py +++ b/src/mudlib/zmachine/zstring.py @@ -64,7 +64,7 @@ class ZCharTranslator: DEFAULT_A0 = [ord(x) for x in "abcdefghijklmnopqrstuvwxyz"] DEFAULT_A1 = [ord(x) for x in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"] # A2 also has 0x6 as special char, so they start at 0x7. - DEFAULT_A2 = [ord(x) for x in "0123456789.,!?_#'\"/\\-:()"] + DEFAULT_A2 = [ord(x) for x in "\n0123456789.,!?_#'\"/\\-:()"] DEFAULT_A2_V5 = [ord(x) for x in "\n0123456789.,!?_#'\"/\\-:()"] ALPHA = (DEFAULT_A0, DEFAULT_A1, DEFAULT_A2)