- This should solve the malformed output bugs on each of the three main
   pathways.

 - Also made one of the new table files sane.
---
 src/clean_string.c |  2 +-
 table/punct2.tbl   | 20 ++++++++++----------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/clean_string.c b/src/clean_string.c
index f1a75ba..fc84f72 100644
--- a/src/clean_string.c
+++ b/src/clean_string.c
@@ -681,7 +681,7 @@ unsigned char *clean_utf_8(unsigned char *s, void *opts)
                        /*
                         * Null translation == leave it alone
                         */
-                       *input_walk -= characters_eaten;
+                       input_walk -= characters_eaten - 1;
 
                        while (characters_eaten) {
                                *output_walk++ = *input_walk++;
diff --git a/table/punct2.tbl b/table/punct2.tbl
index 7a49307..2ea488f 100644
--- a/table/punct2.tbl
+++ b/table/punct2.tbl
@@ -2,15 +2,15 @@
 
 start
 
-0x23           '#'
-0x25           %
-0x2b           +
-0x2c           ,
-0x2d           -
-0x2e           .
-0x3d           =
-0x5e           ^
-0x5f           _
-0x7e           ~
+0x23           _ # '#'
+0x25           _ # %
+0x2b           _ # +
+0x2c           _ # ,
+0x2d           _ # -
+0x2e           _ # .
+0x3d           _ # =
+0x5e           _ # ^
+0x5f           _ # _
+0x7e           _ # ~
 
 end
-- 
2.9.0

Reply via email to