bug-coreutils
[Top][All Lists]
Advanced

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

Re: printf '\41' erroneously fails


From: Ben Harris
Subject: Re: printf '\41' erroneously fails
Date: Mon, 21 Apr 2003 15:32:11 +0100 (BST)

On Sun, 20 Apr 2003, Bob Proulx wrote:

> > IEEE Std 1003.1, 2003 Edition states that in printf(1) format strings:
> >
> > # ... "\ddd" , where ddd is a one, two, or three-digit octal number,
> > # shall be written as a byte with the numeric value specified by the
> > # octal number.
> > <http://www.opengroup.org/onlinepubs/009696899/utilities/printf.html>
>
> Are you refering to this item?
>
>     "\0ddd" , where ddd is a zero, one, two, or three-digit octal
>     number that shall be converted to a byte with the numeric value
>     specified by the octal number

No.  That's the description of the %b conversion specifier.  Look at
item 3 in the EXTENDED DESCRIPTION, about 15 lines higher up.

-- 
Ben Harris                                                   <address@hidden>
Portmaster, NetBSD/acorn26           <URL:http://www.netbsd.org/Ports/acorn26/>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]