gazebosim/gz-common

Use UTF16 versions of Windows API functions

开放

#129 创建于 2020年11月23日

 (1 条评论) (0 个反应) (0 位负责人)C++ (59 个派生)auto 404
help wanted

仓库指标

星标
 (28 个星标)
PR 合并指标
 (平均合并 9天 6小时) (30 天内合并 30 个 PR)

描述

Most of ign-common is using the ASCII versions of Windows API functions. These should be converted to the ones using wchar_t (UTF16) strings. The ASCII API is prone to text encoding problems, whereas the UTF16 API doesn't have an issue.

This would probably also deserve a helper function to convert std::string<char> to std::wstring (std::string<wchar_t>). https://stackoverflow.com/questions/4804298/how-to-convert-wstring-into-string might be a good start for this function, as it really isn't as trivial as one would think.

贡献者指南