KhronosGroup / KhronosGroup/OpenXR-SDK-Source

Windows openxr loader UTF8 path read error

Open
#321 1 comment 0 reactions 0 assignees View on GitHub
synced to gitlab
Dominant language
Python
Stars
825
Forks
306
Avg merge
1d 23h
Merged PRs (30d)
1

Description

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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Trace the Windows runtime-path handling from the registry read through the UTF-8 and wide-character conversions described in the report, focusing on the final std::ifstream load. Reproduce the problem with a registry path containing Chinese characters. Done means the runtime file loads successfully when its path contains non-ASCII characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.