OpenXR-SDK-Source icon indicating copy to clipboard operation
OpenXR-SDK-Source copied to clipboard

Windows openxr loader UTF8 path read error

Open MingQQ opened this issue 1 year ago • 1 comments

Hello,i found openxr loader got an error when read runtime path from windows regedit which contains chinese word。

  1. xr loader turn wider char to utf8 after read runtime path from regedit: 企业微信截图_16583047562730

  2. below is utf8 string: 企业微信截图_16583048641824

  3. xr loader turn back to wide char when try to check file if exists: 企业微信截图_16583049054400

  4. xr check file ok, then store the path in the list with utf8 format: 企业微信截图_16583049511148

  5. got error when try to load file with utf8 formated path,std::ifstream could not recognize utf8 string: 企业微信截图_16583050763155(2)

MingQQ avatar Jul 20 '22 09:07 MingQQ

An issue (number 1794) has been filed to correspond to this issue in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#1794 ), to facilitate working group processes.

This GitHub issue will continue to be the main site of discussion.

rpavlik-bot avatar Jul 28 '22 17:07 rpavlik-bot