diff options
-rw-r--r-- | uxd.1 | 18 | ||||
-rw-r--r-- | uxd.c | 2 | ||||
-rw-r--r-- | uxd.rst | 16 |
3 files changed, 20 insertions, 16 deletions
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "UXD" 1 "2024-12-18" "0.2.1" "Urchlay's Utilities" +.TH "UXD" 1 "2024-12-20" "0.2.1" "Urchlay's Utilities" .SH NAME uxd \- UTF-8 hex dumper .SH SYNOPSIS @@ -332,24 +332,26 @@ sequences are: .INDENT 0.0 .IP \(bu 2 Prefix bytes (>= 0x80) which are not followed by the correct number of continuation -bytes (with their high 2 bits set to \fB10\fP). +bytes (with their high 2 bits set to \fB10\fP). Rendered as \fB�\fP\&. .IP \(bu 2 -Continuation bytes that aren\(aqt preceded by a valid prefix byte. +Continuation bytes that aren\(aqt preceded by a valid prefix byte. Rendered as \fB�\fP\&. .IP \(bu 2 -Truncated UTF\-8 sequence at EOF. +Truncated UTF\-8 sequence at EOF. Rendered as \fB�\fP\&. .IP \(bu 2 -UTF\-16 surrogates (codepoints U+D800 to U+DFFF) [\fB*\fP]. +UTF\-16 surrogates (codepoints U+D800 to U+DFFF) [\fB*\fP]. Rendered as \fBS\fP\&. .IP \(bu 2 Codepoints above U+10FFFF, which are disallowed by the Unicode standard [\fB*\fP]. +Rendered as \fB>\fP\&. .IP \(bu 2 Overlong encodings (e.g. codepoints U+0000 to U+007F encoded -as 2 or more bytes) [\fB*\fP]. +as 2 or more bytes) [\fB*\fP]. Rendered as \fBO\fP\&. .UNINDENT .sp For items marked with [\fB*\fP], the \fB\-j\fP, \fB\-p\fP, and/or \fB\-w\fP -options can disable error highlighting for this type of error. +options can disable error highlighting for this type of error. They +will be displayed in purple rather than red. .sp -Each occurrence of any of the above will increment the "Bad +Each error\-highlighted sequence will increment the "Bad sequences" count, if the \fB\-i\fP option is used. .UNINDENT .UNINDENT @@ -85,7 +85,7 @@ extern int optind; #define PRINT_BAD "�" #define PRINT_BOM "B" #define PRINT_OLONG "O" -#define PRINT_OORANGE "+" +#define PRINT_OORANGE ">" #define PRINT_SURR "S" /* sprintf() formats for hex data */ @@ -274,23 +274,25 @@ changed with the **-c** option (see above). sequences are: - Prefix bytes (>= 0x80) which are not followed by the correct number of continuation - bytes (with their high 2 bits set to **10**). + bytes (with their high 2 bits set to **10**). Rendered as **�**. - - Continuation bytes that aren't preceded by a valid prefix byte. + - Continuation bytes that aren't preceded by a valid prefix byte. Rendered as **�**. - - Truncated UTF-8 sequence at EOF. + - Truncated UTF-8 sequence at EOF. Rendered as **�**. - - UTF-16 surrogates (codepoints U+D800 to U+DFFF) [**\***]. + - UTF-16 surrogates (codepoints U+D800 to U+DFFF) [**\***]. Rendered as **S**. - Codepoints above U+10FFFF, which are disallowed by the Unicode standard [**\***]. + Rendered as **>**. - Overlong encodings (e.g. codepoints U+0000 to U+007F encoded - as 2 or more bytes) [**\***]. + as 2 or more bytes) [**\***]. Rendered as **O**. For items marked with [**\***], the **-j**, **-p**, and/or **-w** - options can disable error highlighting for this type of error. + options can disable error highlighting for this type of error. They + will be displayed in purple rather than red. - Each occurrence of any of the above will increment the "Bad + Each error-highlighted sequence will increment the "Bad sequences" count, if the **-i** option is used. TERMINAL SUPPORT |