This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: _strptime fixes for None locale and tz
Type: Stage:
Components: Library (Lib) Versions:
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, loewis
Priority: normal Keywords: patch

Created on 2002-11-15 21:20 by brett.cannon, last changed 2022-04-10 16:05 by admin. This issue is now closed.

File name Uploaded Description Edit
strp.diff brett.cannon, 2002-11-15 21:20 2002-11-15: patch for _strptime and test_strptime
Messages (2)
msg41663 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2002-11-15 21:20
Andrew MacIntyre found two problems with
while compiled on FreeBSD 4.4 (email can be found at
 One bug was when the name of the locale was set to
None an error was thrown when comparing the language
setting when strptime() was passed in a generated re
object.  The other problem was a failure where the
improper timezone value was being set because the
locale had the same timezone name for both with and
without daylight savings.  I fixed that by just
checking if this case occured; if it did I left the
timezone value as -1 since there is no way to know what
the correct value is.

Now I don't know if either of these fixes are
considered too platform-specific.  But I would think
that FreeBSD is a big enough of a platform it might be
warranted.  Plus locale settings are inconsistent
enough as it is that dealing with one more funky
possibility won't hurt anything... hopefully.

If patch #633633 (Cleanup for is
still open when this patch is closed, just go ahead and
close it without applying the patch.  The patch here
includes everything from that patch.
msg41664 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-11-27 08:31
Logged In: YES 

Thanks for the patch. Applied as 1.6 1.7
Date User Action Args
2022-04-10 16:05:54adminsetgithub: 37481
2002-11-15 21:20:57brett.cannoncreate