aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usage.c2
-rw-r--r--uxd.114
-rw-r--r--uxd.rst12
3 files changed, 14 insertions, 14 deletions
diff --git a/usage.c b/usage.c
index a957552..16a7dd9 100644
--- a/usage.c
+++ b/usage.c
@@ -10,7 +10,7 @@ char *usage_opts[] = {
" -m: monochrome mode.",
" -n: ignore UXD_OPTS environment variable.",
" -o offset: added to hex offsets (decimal, 0x hex, 0 octal).",
- " -r: highlight multi-byte chars in reverse video.",
+ " -r: don't highlight multi-byte chars in reverse video.",
" -s pos: seek in input before dumping (-pos = seek back from EOF).",
" -S pos: like -s, but also sets -o so addresses start at 0.",
" -u: uppercase hex digits.",
diff --git a/uxd.1 b/uxd.1
index f5cb1a2..2066f89 100644
--- a/uxd.1
+++ b/uxd.1
@@ -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-20" "0.2.1" "Urchlay's Utilities"
+.TH "UXD" 1 "2024-12-21" "0.2.1" "Urchlay's Utilities"
.SH NAME
uxd \- UTF-8 hex dumper
.SH SYNOPSIS
@@ -122,9 +122,9 @@ bad sequences.
.INDENT 0.0
.TP
.B \-j
-Java mode (aka MUTF\-8). Identical to UTF\-8 except it allows the
+Java mode (aka MUTF\-8). Identical to UTF\-8 except the
overlong \fB0xc0 0x80\fP encoding for codepoint U+0000 (aka NUL),
-which normally would be considered an error.
+is highlighted in purple and not counted as an error.
This may be useful for looking at serialized data created by Java
programs.
.UNINDENT
@@ -174,10 +174,9 @@ above \fBU+10FFFF\fP, and surrogates. Only malformed sequences will be
highlighed in red.
.TP
.B \-r
-Highlight multi\-byte sequences in reverse video, in the hex
-output. Ignored if \fB\-m\fP given.
+Don\(aqt highlight multi\-byte sequences in reverse video.
.UNINDENT
-.\" highlight multi-byte chars in reverse video.
+.\" don't highlight multi-byte chars in reverse video.
.
.INDENT 0.0
.TP
@@ -238,7 +237,8 @@ Print version number and exit.
.INDENT 0.0
.TP
.B \-w
-WTF\-8 mode. Surrogates \fBU+D800\fP to \fBU+D8FF\fP will not be considered errors.
+WTF\-8 mode. Surrogates \fBU+D800\fP to \fBU+D8FF\fP will be highlighted in
+purple and not counted as errors.
.UNINDENT
.\" WTF-8 mode (allow surrogates).
.
diff --git a/uxd.rst b/uxd.rst
index d4ad0b4..53a9789 100644
--- a/uxd.rst
+++ b/uxd.rst
@@ -99,9 +99,9 @@ as *K*, *M*, and *G* for power-of-10 based (e.g. *1K* is 1000 bytes).
.. print number of bytes/chars/ascii/multibyte/bad sequences.
-j
- Java mode (aka MUTF-8). Identical to UTF-8 except it allows the
+ Java mode (aka MUTF-8). Identical to UTF-8 except the
overlong **0xc0 0x80** encoding for codepoint U+0000 (aka NUL),
- which normally would be considered an error.
+ is highlighted in purple and not counted as an error.
This may be useful for looking at serialized data created by Java
programs.
@@ -141,10 +141,9 @@ as *K*, *M*, and *G* for power-of-10 based (e.g. *1K* is 1000 bytes).
highlighed in red.
-r
- Highlight multi-byte sequences in reverse video, in the hex
- output. Ignored if **-m** given.
+ Don't highlight multi-byte sequences in reverse video.
-.. highlight multi-byte chars in reverse video.
+.. don't highlight multi-byte chars in reverse video.
-s pos
Seek in input before starting to dump. *pos* is bytes, not
@@ -187,7 +186,8 @@ as *K*, *M*, and *G* for power-of-10 based (e.g. *1K* is 1000 bytes).
.. print version of uxd.
-w
- WTF-8 mode. Surrogates **U+D800** to **U+D8FF** will not be considered errors.
+ WTF-8 mode. Surrogates **U+D800** to **U+D8FF** will be highlighted in
+ purple and not counted as errors.
.. WTF-8 mode (allow surrogates).