GNU bug report logs - #74427
tests/printf/printf-indexed failure on macOS

Previous Next

Package: coreutils;

Reported by: Grisha Levit <grishalevit <at> gmail.com>

Date: Tue, 19 Nov 2024 04:39:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 74427 <at> debbugs.gnu.org, P <at> draigBrady.com, grishalevit <at> gmail.com
Subject: bug#74427: tests/printf/printf-indexed failure on macOS
Date: Tue, 19 Nov 2024 08:47:03 -0800
[Message part 1 (text/plain, inline)]
On 2024-11-19 07:10, Pádraig Brady wrote:
> I've not got access to a macos system to test currently,
> but the attached should address this.

That patch addresses only the empty string, not other strings that 
cannot be converted (e.g., a string consisting of a single space). This 
turns out to be a longstanding bug in printf. I installed the attached 
fancier patch which should address the more-general problem, and which 
adds some test cases. I tested this on cfarm104.cfarm.net which is 
running macOS 12.6.
[0001-printf-diagnose-empty-args-correctly.patch (text/x-patch, attachment)]

This bug report was last modified 239 days ago.

Previous Next


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