From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C0DCF385702C; Mon, 8 Aug 2022 19:05:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0DCF385702C From: "yann at droneaud dot fr" To: glibc-bugs@sourceware.org Subject: [Bug time/16088] Implement strptime %Z Date: Mon, 08 Aug 2022 19:05:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: time X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: yann at droneaud dot fr X-Bugzilla-Status: NEW 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: cc attachments.created 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2022 19:05:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D16088 Yann Droneaud changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yann at droneaud dot fr --- Comment #2 from Yann Droneaud --- Created attachment 14265 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14265&action=3Ded= it test case to demonstrate failure in parsing %Z format (In reply to Ondrej Bilka from comment #0) > A strptime %Z currently only reads timezone but ignores it. Actual > implementation would be needed. And unfortunately the way it ignores the timezone name makes strptime() una= ble to parse names that are not delimited by white space. For example strptime(, "%Z/",) will return NULL, because the trailing slash will be consumed as the timezone name. This corner case makes strptime() unable to parse strftime() output: strftime() produced "GMT/" strptime() failed to parse "GMT/" --=20 You are receiving this mail because: You are on the CC list for the bug.=