From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 165703858C27; Tue, 14 Nov 2023 13:24:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 165703858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699968289; bh=xXX/YwLdEGi0xw7m3EAbhy/VZPoinKnf0z5pX9XVdYY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W8nxQiBefhaovYIocYIDYUY46zmn7Oypg1F8VwdtQRdEdYyqxuGccb6IlnCVT5AMd 5YeuvvkRN5BYXTt1NDfiXXqF/kyYLyLd52AYONZMc59661J0nFdvY6yFkdnaieQ0MM xRuMqUd0wwUVJpnHzUZpuPEyd0PmDg0nw+I1FF8E= From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug stdio/30257] *printf of %lc with null argument should not produce a NUL byte Date: Tue, 14 Nov 2023 13:24:47 +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.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: NOTABUG X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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=3D30257 Bruno Haible changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTABUG Status|UNCONFIRMED |RESOLVED --- Comment #3 from Bruno Haible --- This issue was submitted in the ISO C 23 ballot as GB-141, and in the meeting from 2023-06-20 to 2023-06-23 it was decided upon: page 23, 24. The decision ("option 1") is detailed in : "Option 1 (require a NUL) - change the text to: If an l length modifier is present, the wint_t argument is converted as if by a call to the wcrtomb function with a pointer to storage of at least MB_CUR_MAX bytes, the wint_t argument converted to wchar_t, and an initial shift state." So, ISO C changed, and POSIX will follow suit. The glibc behaviour is thus now ISO C compliant. Not a bug any more. --=20 You are receiving this mail because: You are on the CC list for the bug.=