From owner-cvs-src@FreeBSD.ORG Sat Aug 2 06:02:23 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7944D1065746; Sat, 2 Aug 2008 06:02:23 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 68F538FC0C; Sat, 2 Aug 2008 06:02:23 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7262NTv053659; Sat, 2 Aug 2008 06:02:23 GMT (envelope-from das@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7262NLf053658; Sat, 2 Aug 2008 06:02:23 GMT (envelope-from das@repoman.freebsd.org) Message-Id: <200808020602.m7262NLf053658@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to das@repoman.freebsd.org using -f From: David Schultz Date: Sat, 2 Aug 2008 06:02:02 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/printf printf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2008 06:02:23 -0000 das 2008-08-02 06:02:02 UTC FreeBSD src repository Modified files: usr.bin/printf printf.c Log: SVN rev 181153 on 2008-08-02 06:02:02Z by das POSIX says that octal escapes have the format \ddd in the format string, but \0ddd in a %b argument, with a length restriction of 3 octal digits in either case. This seems silly, but it needs to be right so it's possible to write an octal escape followed by an ordinary digit. Solaris printf(1) and GNU printf(1) also behave this way. Example: "printf '\0752'" now produces "=2" instead of garbage. Revision Changes Path 1.38 +2 -1 src/usr.bin/printf/printf.c