From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6458C385842A; Tue, 10 Jan 2023 12:32:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6458C385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673353952; bh=A0roq3aAmOb5c6tsB6H8d06Z/3W8hO8Kj62Ikk4mIZ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gaJm6oR+v7R9jBvFpfO0xOXZs5tox/Auh04rtioYv5JqSDEFQPWI3U9d55V1q8Rtc utc4ym3rkuzdmVhKCj4PJuGzdWU4Bk3VjDwqehJa4orSmwozm2RSffnbIe1ZlB4ufV w69AMXkdQVH0Ellu6GyWSesHdQgusiSacpEb0K1Y= From: "vincent-srcware at vinc17 dot net" To: glibc-bugs@sourceware.org Subject: [Bug stdio/23432] incorrect printf output for integers with thousands separator and precision field larger than the number of digits (needing leading zeros) Date: Tue, 10 Jan 2023 12:32:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: 2.27 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-srcware at vinc17 dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D23432 --- Comment #3 from Vincent Lef=C3=A8vre --- Note: This concerns only integers (e.g. %d), as with floating-point numbers, specifying a precision cannot yield leading zeros. The POSIX rule is differ= ent with zero padding ("If the '0' and flags both appear, the grou= ping characters are inserted before zero padding."), which is due to the width f= ield rather than the precision field. --=20 You are receiving this mail because: You are on the CC list for the bug.=