Empty strings fail to convert to wide on Windows
Open
- Dominant language
- C++
- Stars
- 145
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
In file .../process/detail/windows/locale.hpp in method windows_file_codecvt::do_in(...) MultiByteToWideChar is called with the string length and this API function fails when the length is 0, so the code raises exception later on.
Simple and safe solution would be to skip the MultiByteToWideChar(...) call in such case.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.