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

Didnot work strftime() when hangeul in format sting #76967

Closed
leop0ld mannequin opened this issue Feb 7, 2018 · 5 comments
Closed

Didnot work strftime() when hangeul in format sting #76967

leop0ld mannequin opened this issue Feb 7, 2018 · 5 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@leop0ld
Copy link
Mannequin

leop0ld mannequin commented Feb 7, 2018

BPO 32786
Nosy @terryjreedy, @matrixise, @leop0ld
Files
  • 스크린샷 2018-02-07 오후 3.24.05.png
  • 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 2018-02-10.03:45:18.657>
    created_at = <Date 2018-02-07.07:37:54.212>
    labels = ['type-bug', 'library']
    title = 'Didnot work strftime() when hangeul in format sting'
    updated_at = <Date 2018-02-10.03:45:18.655>
    user = 'https://github.com/leop0ld'

    bugs.python.org fields:

    activity = <Date 2018-02-10.03:45:18.655>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-02-10.03:45:18.657>
    closer = 'terry.reedy'
    components = ['Library (Lib)']
    creation = <Date 2018-02-07.07:37:54.212>
    creator = 'leop0ld'
    dependencies = []
    files = ['47427']
    hgrepos = []
    issue_num = 32786
    keywords = []
    message_count = 5.0
    messages = ['311771', '311779', '311784', '311812', '311933']
    nosy_count = 3.0
    nosy_names = ['terry.reedy', 'matrixise', 'leop0ld']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32786'
    versions = ['Python 3.4']

    @leop0ld
    Copy link
    Mannequin Author

    leop0ld mannequin commented Feb 7, 2018

    Good morning.
    I have a question while writing Python code in Django.

    I got empty string when I ran code in a screenshot.
    But it works in python interprerter(python manage.py shell).
    I don't know why it works or didn't work.
    I think maybe hangeul is related.
    Please confirm this issue.

    I used Django 1.11, Python 3.4.4 version.

    @leop0ld leop0ld mannequin added topic-argument-clinic type-bug An unexpected behavior, bug, or error labels Feb 7, 2018
    @matrixise
    Copy link
    Member

    Thank you for your contribution,

    Just one question, do you have the same issue with Python 3.6 because
    Python 3.4 is a security release, Python 3.6 is a bugfix release.

    Thank you,

    @larryhastings
    Copy link
    Contributor

    This is not an Argument Clinic problem.

    @larryhastings larryhastings added stdlib Python modules in the Lib dir and removed topic-argument-clinic labels Feb 7, 2018
    @leop0ld
    Copy link
    Mannequin Author

    leop0ld mannequin commented Feb 8, 2018

    It works correctly in python 3.6

    I think this problem is occured only python 3.4
    First, I changed this code like below.

    '{0:%Y}년 {0:%-m}월 {0:%-d}일'.format(proposal.hold_end_date)
    

    But I wonder why doesn't work in only python 3.4

    @terryjreedy
    Copy link
    Member

    There are hundreds of bug fixes in 3.6 that are not in 3.4. If there is a Django version that works with 3.6 and you can otherwise upgrade, think about doing so.

    @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
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants