[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-11-10 Thread Andrei Kulakov
Andrei Kulakov added the comment: This was fixed in https://github.com/python/cpython/commit/dd7b816ac87, perhaps this should be closed as fixed? It sounds like the general solution is beyond the scope of this issue and doesn't need to be tracked here. -- nosy: +andrei.avk

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It will not work in all cases. For example if the stdio encoding is UTF-8 and the filesystem encoding is Latin1. Or the stdio encoding is CP1251 and the filesystem encoding is UTF-8. I am not also sure that it gives us the result which we want if it

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-09-03 Thread Nikita Sobolev
Nikita Sobolev added the comment: 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(

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ touch тест $ ./python Tools/scripts/md5sum.py тест d41d8cd98f00b204e9800998ecf8427e тест $ LC_ALL=uk_UA.koi8u PYTHONIOENCODING=koi8-u ./python Tools/scripts/md5sum.py тест d41d8cd98f00b204e9800998ecf8427e тест $ LC_ALL=uk_UA.koi8u PYTHONIOENCODING=utf-8

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-08-31 Thread STINNER Victor
STINNER Victor added the comment: > But there is also an issue in the script itself. It fails or produces a > mojibake when the filesystem encoding and the stdout encoding do not match. I don't know Tools/scripts/md5sum.py. Can you show an example which currently fails? --

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test is failing because TESTFN contains now non-ASCII characters. The path is written to stdout using the default stdout encoding on Windows (like cp1252), but test searches the path encoded with UTF-8. This test should fail also on other platforms with

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-08-30 Thread Nikita Sobolev
Nikita Sobolev added the comment: I would love to work on this issue :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-08-30 Thread Nikita Sobolev
New submission from Nikita Sobolev : While working on https://github.com/python/cpython/pull/28060 we've noticed that `test.test_tools.test_md5sum.MD5SumTests.test_checksum_fodder` fails on Windows: ``` == FAIL: