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.

classification
Title: datetime's strftime limits strings to 127 chars
Type: Stage:
Components: Extension Modules Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, georg.brandl
Priority: normal Keywords: patch

Created on 2006-09-12 19:35 by eric.smith, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
strftime.patch eric.smith, 2006-09-12 19:35 Code and test patch
Messages (2)
msg51109 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2006-09-12 19:35
See bug http://python.org/sf/1556784

By putting the length into a char, wrap_strftime()
restricts the format string to be 127 characters long.
 This patch removes that restriction, but using Py_ssize_t.

Test included.

Patch is against release25-maint.
msg51110 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-09-30 11:17
Logged In: YES 
user_id=849994

Thanks for the report, fixed in rev. 52072, 52073 (2.4),
52074 (2.5).
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 43966
2006-09-12 19:35:42eric.smithcreate