Subject: lib/36214: NetBSD strptime doesn't support "%Z" and "%z" format modifiers
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <johani@autonomica.se>
List: netbsd-bugs
Date: 04/25/2007 14:40:00
>Number: 36214
>Category: lib
>Synopsis: NetBSD strptime doesn't support "%Z" and "%z" format modifiers
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 25 14:40:00 +0000 2007
>Originator: Johan Ihren
>Release: NetBSD 4.0_BETA2
>Organization:
>Environment:
System: NetBSD idefix.johani.org 4.0_BETA2 NetBSD 4.0_BETA2 (XEN2_DOM0) #1: Tue Jan 9 12:07:45 CET 2007 root@peach.johani.org:/usr/store/source/netbsd/netbsd-4/kernels.i386/XEN2_DOM0 i386
Architecture: i386
Machine: i386
>Description:
While debugging some code that works under Linux but fails
under NetBSD I eventually realized that our strptime is
(a) different from Linux and (b) not the inverse of our own
strftime.
I do not claim to understand the details of time formats, but it would
seem to be wrong that strftime can produce a string that strptime
cannot parse. Especially as other OSes don't have the same limitation.
>How-To-Repeat:
Just read the docs.
>Fix:
First we need to decide if this is a bug or not.