diff options
author | sean <phonologus@gmail.com> | 2020-05-21 16:10:30 +0100 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-29 21:42:23 -0400 |
commit | 95220bf88775deab4a037264d08b21bacc612d70 (patch) | |
tree | b59a298f557139643dc27050723a67e587e9681b /man/man1 | |
parent | 3850e6e177677885074c8896ef24534894726ad5 (diff) | |
download | plan9port-95220bf88775deab4a037264d08b21bacc612d70.tar.gz plan9port-95220bf88775deab4a037264d08b21bacc612d70.tar.bz2 plan9port-95220bf88775deab4a037264d08b21bacc612d70.zip |
ed: handle Unicode beyond the BMP correctly in list mode.
List mode was constrained to the BMP. This change introduces
the following new list mode convention, using Go string literal syntax:
Non-printing ASCII characters display as \xhh.
Non-ASCII characters in the BMP display as \uhhhh.
Characters beyond the BMP display as \Uhhhhhhhh.
Diffstat (limited to 'man/man1')
-rw-r--r-- | man/man1/ed.1 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/man/man1/ed.1 b/man/man1/ed.1 index 00eb095a..9b161b29 100644 --- a/man/man1/ed.1 +++ b/man/man1/ed.1 @@ -441,10 +441,18 @@ a backspace as .LR \eb , backslashes as .LR \e\e , -and non-printing characters as +and non-printing ASCII characters as a backslash, an .LR x , -and four hexadecimal digits. +and two hexadecimal digits. +non-ASCII characters in the Basic Multilingual Plane +are printed as a backslash, a small +.LR u , +and four hexadecimal digits; and characters above the +Basic Multilingual Plane are printed as a backslash, +a big +.LR U , +and six hexadecimal digits. Long lines are folded, with the second and subsequent sub-lines indented one tab stop. If the last character in the line is a blank, |