boostorg / boostorg/process

Empty strings fail to convert to wide on Windows

Open
#248 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.