Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datetime's strftime limits strings to 127 chars #43966

Closed
ericvsmith opened this issue Sep 12, 2006 · 2 comments
Closed

datetime's strftime limits strings to 127 chars #43966

ericvsmith opened this issue Sep 12, 2006 · 2 comments
Labels
extension-modules C modules in the Modules dir

Comments

@ericvsmith
Copy link
Member

BPO 1557390
Nosy @birkenfeld, @ericvsmith
Files
  • strftime.patch: Code and test patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2006-09-30.11:17:57.000>
    created_at = <Date 2006-09-12.19:35:42.000>
    labels = ['extension-modules']
    title = "datetime's strftime limits strings to 127 chars"
    updated_at = <Date 2006-09-30.11:17:57.000>
    user = 'https://github.com/ericvsmith'

    bugs.python.org fields:

    activity = <Date 2006-09-30.11:17:57.000>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2006-09-12.19:35:42.000>
    creator = 'eric.smith'
    dependencies = []
    files = ['7536']
    hgrepos = []
    issue_num = 1557390
    keywords = ['patch']
    message_count = 2.0
    messages = ['51109', '51110']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'eric.smith']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1557390'
    versions = ['Python 2.5']

    @ericvsmith
    Copy link
    Member Author

    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.

    @ericvsmith ericvsmith added the extension-modules C modules in the Modules dir label Sep 12, 2006
    @ericvsmith ericvsmith added the extension-modules C modules in the Modules dir label Sep 12, 2006
    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=849994

    Thanks for the report, fixed in rev. 52072, 52073 (2.4),
    52074 (2.5).

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants