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.

Author sobolevn
Recipients ezio.melotti, serhiy.storchaka, sobolevn, vstinner
Date 2021-09-03.19:51:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630698715.72.0.596916688735.issue45053@roundup.psfhosted.org>
In-reply-to
Content
Yes, it was encodings problem :)

This line solved it (here: https://github.com/python/cpython/blob/6f8bc464e006f672d1aeafbfd7c774a40215dab2/Tools/scripts/md5sum.py#L69):

```python
out.write('%s %s\n' % (m.hexdigest(), filename.encode(
        sys.getfilesystemencoding(),
    ).decode(sys.stdout.encoding)))
```

> The simplest way to "fix" the test is using TESTFN_ASCII instead of TESTFN.

I haven't changed this, because right now it should work for non-ASCII symbols as well. I can even add an explicit ASCII test if needed.

Shouldn't https://github.com/python/cpython/pull/28060 be merge before I submit a new PR, so we can be sure that test now works? In the current state it will be just ignored.
History
Date User Action Args
2021-09-03 19:51:55sobolevnsetrecipients: + sobolevn, vstinner, ezio.melotti, serhiy.storchaka
2021-09-03 19:51:55sobolevnsetmessageid: <1630698715.72.0.596916688735.issue45053@roundup.psfhosted.org>
2021-09-03 19:51:55sobolevnlinkissue45053 messages
2021-09-03 19:51:55sobolevncreate