From owner-cvs-all Thu Sep 27 8:39:57 2001 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 7A1E537B42F; Thu, 27 Sep 2001 08:39:52 -0700 (PDT) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id f8RFdol02598; Thu, 27 Sep 2001 11:39:50 -0400 (EDT) (envelope-from wollman) Date: Thu, 27 Sep 2001 11:39:50 -0400 (EDT) From: Garrett Wollman Message-Id: <200109271539.f8RFdol02598@khavrinen.lcs.mit.edu> To: Sheldon Hearn Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/procfs procfs_status.c In-Reply-To: <81584.1001578758@axl.seasidesoftware.co.za> References: <20010927145242.B3656@sydney.worldwide.lemis.com> <81584.1001578758@axl.seasidesoftware.co.za> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > If you're suggesting hex, which requires fewer characters to represent, > I'm with you. Depending on whether or not you want to be compatible with C syntax, octal may be preferable to hex. The reason is that C's octal escapes never represent more than one character; C's hex escapes can code for an unlimited number of characters. This means that any character following a hex escape which might be interpreted as a valid hexadecimal digit must also be escaped. (I.e., "\xffff" represents the same string literal as "\277\277", not "\277ff".) I would suggest that the vis(3) default encoding should be used. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message