to-mc / checksumdir

Simple package to compute a single deterministic hash of the file contents of a directory.
MIT License
94 stars 28 forks source link

any plan for supporting windows? #27

Open dongulee opened 2 years ago

dongulee commented 2 years ago

Hi @cakepietoast , I tried this library for testing my own hashsum script if it works correctly. But there were mismatches in various situations. I found it encodes hash values in UTF-8 which is not a default option in Windows. I wonder you already knew this issue.

Thanks.

baterflyrity commented 2 years ago

Hi! Just want to notice that print just uses environment's encoding. It seems like your environment has wrong setup. You can check your terminal/console emulator encoding with:

py -c "import sys;print(sys.stdout.encoding)"
dongulee commented 1 year ago

it's utf-8. I changed my terminal codepage to utf8 recently. It was cp949 (korean).

baterflyrity commented 1 year ago

Well, since then it must be working, isn't it?