Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
win_multi_byte_to_wide_char should use CP_ACP instead of CP_THREAD_ACP #7854
Original bug ID: 7854
I believe that, for the intended backward-compatibility purpose, CP_ACP is more appropriate than CP_THREAD_ACP. The former (System active code page) is the one used by the ANSI version of the Windows API functions. I think the latter is more related to user language settings.
Steps to reproduce
Difference between CP_THREAD_ACP and CP_ACP was observed on a japanese Windows 10 host (shift_js) with french as use language setting.
Comment author: @nojb
Indeed, this looks like a bug. Some more information here: https://lists.boost.org/Archives/boost/2010/11/173382.php