Check that lower-case variants of UTF-16 surrogate escape sequences
authorschwarze <schwarze@openbsd.org>
Thu, 16 May 2024 21:27:38 +0000 (21:27 +0000)
committerschwarze <schwarze@openbsd.org>
Thu, 16 May 2024 21:27:38 +0000 (21:27 +0000)
are rejected with the correct error message.

regress/usr.bin/mandoc/char/unicode/input.in
regress/usr.bin/mandoc/char/unicode/input.out_lint

index 845af5f..561ae8a 100644 (file)
Binary files a/regress/usr.bin/mandoc/char/unicode/input.in and b/regress/usr.bin/mandoc/char/unicode/input.in differ
index 70f10c2..ea22826 100644 (file)
@@ -21,14 +21,16 @@ mandoc: input.in:34:19: ERROR: skipping bad character: 0x80
 mandoc: input.in:35:17: ERROR: skipping bad character: 0xe0
 mandoc: input.in:35:18: ERROR: skipping bad character: 0x9f
 mandoc: input.in:35:19: ERROR: skipping bad character: 0xbf
-mandoc: input.in:43:25: ERROR: skipping bad character: 0xed
-mandoc: input.in:43:26: ERROR: skipping bad character: 0xa0
-mandoc: input.in:43:27: ERROR: skipping bad character: 0x80
+mandoc: input.in:43:33: ERROR: skipping bad character: 0xed
+mandoc: input.in:43:34: ERROR: skipping bad character: 0xa0
+mandoc: input.in:43:35: ERROR: skipping bad character: 0x80
 mandoc: input.in:43:17: ERROR: invalid special character: \[uD800]
-mandoc: input.in:44:25: ERROR: skipping bad character: 0xed
-mandoc: input.in:44:26: ERROR: skipping bad character: 0xbf
-mandoc: input.in:44:27: ERROR: skipping bad character: 0xbf
+mandoc: input.in:43:25: ERROR: invalid special character: \[ud800]
+mandoc: input.in:44:33: ERROR: skipping bad character: 0xed
+mandoc: input.in:44:34: ERROR: skipping bad character: 0xbf
+mandoc: input.in:44:35: ERROR: skipping bad character: 0xbf
 mandoc: input.in:44:17: ERROR: invalid special character: \[uDFFF]
+mandoc: input.in:44:25: ERROR: invalid special character: \[udfff]
 mandoc: input.in:58:19: ERROR: skipping bad character: 0xf0
 mandoc: input.in:58:20: ERROR: skipping bad character: 0x80
 mandoc: input.in:58:21: ERROR: skipping bad character: 0x80