GNU bug report logs - #13555
printf ignores length modifier

Previous Next

Package: coreutils;

Reported by: "Marcel Böhme" <hawkie <at> web.de>

Date: Sat, 26 Jan 2013 10:36:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Marcel Boehme <hawkie <at> web.de>, Paul Eggert <eggert <at> cs.ucla.edu>
Cc: "13555 <at> debbugs.gnu.org" <13555 <at> debbugs.gnu.org>
Subject: bug#13555: printf ignores length modifier
Date: Thu, 18 Oct 2018 17:28:34 -0600
tags 13555 notabug
close 13555
stop

(triaging old bugs)

Hello,

> Paul Eggert <eggert <at> cs.ucla.edu> wrote:
>
>>  Marcel Böhme wrote:
>>> $old/printf "%hi\n" 0xFFFF
>>> -1
>>> $printf "%hi\n" 0xFFFF
>>> 65535
>>
>> None of these length modifiers are specified by POSIX,
>> so we're talking about what it's more useful for printf
>> to do, rather than whether this is a violation of
>> a standard.

On 26/01/13 05:55 PM, Marcel Boehme wrote:
> Then, I suppose, the observed semantic change for the mentioned version pair was _intended_. Found it odd that I didn't find documented that / why length modifiers are 'suddenly' ignored.
> 
> Thanks for your follow-up!

With no further comments in 5 years, I'm closing this bug.

-assaf




This bug report was last modified 6 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.