summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2013-06-08 11:24:35 +0000
committerCharles Forsyth <charles.forsyth@gmail.com>2013-06-08 11:24:35 +0000
commit94a2f8e42889df31bbca30bcb31e39b583e6cd40 (patch)
treec4a21b1c39483afe1ab8fa44d43a1927d554252e
parent342a051bd0c87d5042aedcb934df74c1f72082ac (diff)
\x takes up to 6 hex digits
-rw-r--r--appl/cmd/tr.b2
-rw-r--r--dis/tr.disbin3429 -> 3429 bytes
-rw-r--r--man/1/tr4
3 files changed, 3 insertions, 3 deletions
diff --git a/appl/cmd/tr.b b/appl/cmd/tr.b
index 202ace53..60d4aa6c 100644
--- a/appl/cmd/tr.b
+++ b/appl/cmd/tr.b
@@ -251,7 +251,7 @@ Pcb.getc(p: self ref Pcb): int
n := 0;
if ((r = p.spec[s]) == 'x') {
s++;
- for (i := 0; i < 4 && s < p.end; i++) {
+ for (i := 0; i < 6 && s < p.end; i++) {
p.current = s;
r = p.spec[s++];
if ('0' <= r && r <= '9')
diff --git a/dis/tr.dis b/dis/tr.dis
index 069f6a2c..e1cd15e0 100644
--- a/dis/tr.dis
+++ b/dis/tr.dis
Binary files differ
diff --git a/man/1/tr b/man/1/tr
index 70105d03..dba92c96 100644
--- a/man/1/tr
+++ b/man/1/tr
@@ -62,9 +62,9 @@ character whose
value is given by those digits.
The character sequence
.L \ex
-followed by 1, 2, 3, or 4 hexadecimal digits stands
+followed by 1 to 6 hexadecimal digits stands
for the character whose
-16-bit value is given by those digits.
+21-bit value is given by those digits.
A
.L \e
followed by any other character stands