msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

Open
#53,950 6 comments 0 reactions 1 assignee View on GitHub

@merwok is already working on this.

Since Jun 15, 2011.

Assessment

This issue has not been assessed yet.

Description

triaged type-bug
BPO 9741
Nosy @loewis, @akuchling, @ezio-melotti, @merwok
PRs
  • python/cpython#10875
  • Files
  • msgfmt-clear.diff: 2 line patch to clear dictionary at start of msgfmt.make()
  • test_msgfmt.py: Test program to check behaviour before and after applying the patch
  • test1.po: 1st of 2 .po files used by test program
  • test2.po: 2nd of 2 .po files used by test program
  • 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 = 'https://github.com/merwok'
    closed_at = None
    created_at = <Date 2010-09-02.14:31:41.028>
    labels = ['type-bug']
    title = 'msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary'
    updated_at = <Date 2018-12-03.19:33:03.946>
    user = 'https://bugs.python.org/timothytylee'
    

    bugs.python.org fields:

    activity = <Date 2018-12-03.19:33:03.946>
    actor = 's-ball'
    assignee = 'eric.araujo'
    closed = False
    closed_date = None
    closer = None
    components = ['Demos and Tools']
    creation = <Date 2010-09-02.14:31:41.028>
    creator = 'timothy.ty.lee'
    dependencies = []
    files = ['18710', '22368', '22369', '22370']
    hgrepos = []
    issue_num = 9741
    keywords = ['patch', 'needs review']
    message_count = 5.0
    messages = ['115378', '138336', '138372', '195472', '240901']
    nosy_count = 5.0
    nosy_names = ['loewis', 'akuchling', 'ezio.melotti', 'eric.araujo', 'timothy.ty.lee']
    pr_nums = ['10875']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue9741'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']
    

    Linked PRs
    • gh-133316
    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.