From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 561C23858D38; Mon, 6 Feb 2023 13:58:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 561C23858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675691902; bh=kUsWZIyaxk1NWxh0H+djfmblgnQj0ZXPrcpaWoUHk10=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wYdvbduHeB48VcJOEnLUdB0hTJUmWasfkwmNxAZ7Be4IMy1XvyPQY17VIbA1rAwkQ 3+GcQIzm3h3Mx8YkSUZs7QNao2Hh3XG18sfvQRI3fW2U0m5ocDSMavRLVeYVW4z31Q VkIViAP6QFeYmaC5PwPBoYFvmTXO85pZ/9uK67yc= 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: Mon, 06 Feb 2023 13:58:21 +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 #8 from Vincent Lef=C3=A8vre --- Note that I was wrong in my initial bug report. For printf ("%'.17d\n", 123456789); I said that it should output "000,000,123,456,789". Actually, there were 2 issues in the glibc 2.36- behavior: the missing thousands' grouping charact= ers with the leading zeros and the incorrect number of digits (15 instead of 17= ). So the correct output should be "00,000,000,123,456,789". --=20 You are receiving this mail because: You are on the CC list for the bug.=