[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: library/2215: strptime() problems
The following reply was made to PR library/2215; it has been noted by GNATS.
From: Artur Grabowski <firstname.lastname@example.org>
To: Niclas Södergård <email@example.com>
Subject: Re: library/2215: strptime() problems
Date: 29 Nov 2001 12:50:25 +0100
Niclas Södergård <firstname.lastname@example.org> writes:
> On Thu, 2001-11-29 at 00:55, Artur Grabowski wrote:
> But the same string works with strptime() on both Solaris and Linux. I
> don't know if there is a standard for strptime() but if there is
> shouldn't the programs work the same. Or is strptime() highly platform
> specific and I should avoid it?
From the man-page again:
The strptime() function conforms to X/Open Portability Guide Issue 4.2
Maybe Solaris and Linux are not as strict as OpenBSD and don't limit themselves
to only follow the standard. I don't know. I don't have the standard here.
I just know that strptime in OpenBSD does what's advertized in the man page
and you created a non-portable program. Maybe we need to fix strptime to be
less conservative, but I think you also need to fix your code to be more