Browse Source

backout VIS_HEX. guenther@ points out that the C89 \xff encoding

idiotically accepts more then two hex digits following the \x, even
on platforms where a char has 8 bits. It is therefore dangerous to have
an almost-bit-not-quite compatible format in vis(3).
The VIS_ALL (encode all characters) option introduced in the same commit
remains.
OPENBSD_4_9
djm 14 years ago
parent
commit
3bc27a71af
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/include/vis.h

+ 1
- 2
src/include/vis.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: vis.h,v 1.12 2010/08/23 02:07:50 djm Exp $ */
/* $OpenBSD: vis.h,v 1.13 2010/08/24 23:49:06 djm Exp $ */
/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */
/*-
@ -40,7 +40,6 @@
*/
#define VIS_OCTAL 0x01 /* use octal \ddd format */
#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropriate */
#define VIS_HEX 0x200 /* use hex \xdd format */
/*
* to alter set of characters encoded (default is to encode all


Loading…
Cancel
Save