Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen There are more than four types of encoding. Th...



details:   https://anonhg.NetBSD.org/src/rev/8df92b367cb1
branches:  trunk
changeset: 355577:8df92b367cb1
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Fri Aug 04 01:06:22 2017 +0000

description:
There are more than four types of encoding.  The combination of
VIS_CSTYLE | VIS_OCTAL is different from either separately.

diffstat:

 lib/libc/gen/vis.3 |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r ed891c326bc6 -r 8df92b367cb1 lib/libc/gen/vis.3
--- a/lib/libc/gen/vis.3        Fri Aug 04 00:25:23 2017 +0000
+++ b/lib/libc/gen/vis.3        Fri Aug 04 01:06:22 2017 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: vis.3,v 1.47 2017/04/23 13:23:02 christos Exp $
+.\"    $NetBSD: vis.3,v 1.48 2017/08/04 01:06:22 ginsbach Exp $
 .\"
 .\" Copyright (c) 1989, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -311,7 +311,7 @@
 .Dv VIS_NOSLASH
 flag below).
 .Pp
-There are four forms of encoding.
+There are six forms of encoding.
 All forms use the backslash character
 .Ql \e
 to introduce a special
@@ -403,6 +403,9 @@
 .Fa nextc
 is an octal digit, the latter representation is used to
 avoid ambiguity.
+.Pp
+Non-printable characters without C-style
+backslash sequences use the default representation.
 .It Dv VIS_OCTAL
 Use a three digit octal sequence.
 The form is
@@ -410,6 +413,11 @@
 where
 .Em d
 represents an octal digit.
+.It Dv VIS_CSTYLE \&| Dv VIS_OCTAL
+Same as
+.Dv VIS_CSTYLE
+except that non-printable characters without C-style
+backslash sequences use a three digit octal sequence.
 .It Dv VIS_HTTPSTYLE
 Use URI encoding as described in RFC 1738.
 The form is



Home | Main Index | Thread Index | Old Index