Procházet zdrojové kódy

fix ascii table

There are 4 ascii code attributes on the misplace line.
The first of these errors causes `#format %p' to not chomp off the CR correctly.

This fix has been verified to resolve the issue.
dzp před 3 roky
rodič
revize
65da51e110
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/tables.c

+ 2 - 2
src/tables.c

@@ -329,6 +329,7 @@ char character_table[256] =
 	0,
 	0,
 
+	0,
 	CHAR_FLAG_SPACE, // \t
 	CHAR_FLAG_SPACE, // \n
 	CHAR_FLAG_SPACE, // \v
@@ -336,7 +337,6 @@ char character_table[256] =
 	CHAR_FLAG_SPACE, // \r
 	0,
 	0,
-	0,
 
 	0,
 	0,
@@ -423,8 +423,8 @@ char character_table[256] =
 	CHAR_FLAG_PRINT|CHAR_FLAG_VAR|CHAR_FLAG_CSI|CHAR_FLAG_ALPHA,
 	CHAR_FLAG_PRINT|CHAR_FLAG_VAR|CHAR_FLAG_CSI|CHAR_FLAG_ALPHA, // 90 Z
 	CHAR_FLAG_PRINT,
-	CHAR_FLAG_PRINT|CHAR_FLAG_CSI, // 93 ]
 	CHAR_FLAG_PRINT,
+	CHAR_FLAG_PRINT|CHAR_FLAG_CSI, // 93 ]
 	CHAR_FLAG_PRINT,
 	CHAR_FLAG_PRINT|CHAR_FLAG_VAR, // 95 _