B7rian / ripsum

Faster sha256 checksums
Apache License 2.0
0 stars 0 forks source link

Exception on multibyte character in filename #11

Open B7rian opened 1 year ago

B7rian commented 1 year ago

C++ doesn't like 1223-全家照.rar and throws an uncaught exception when this filename is encountered in a checksum file.

B7rian commented 1 year ago

terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error' what(): filesystem error: Cannot convert character sequence: Invalid or incomplete multibyte or wide character Aborted

B7rian commented 1 year ago

Note: It can find this file ok and generate a checksum for it, but can't check it

B7rian commented 1 year ago

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90281 https://stackoverflow.com/questions/58521857/cross-platform-way-to-handle-stdstring-stdwstring-with-stdfilesystempath