openframeworks / openframeworks/openFrameworks
ofFileDialogResult getPath return wrong path in Windows if path contains non-latin characters
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
ofFileDialogResult getPath return wrong path in Windows if the path contains non-latin characters.
For example, need select "C:\Images\Вован.png"
ofFileDialogResult result = ofSystemLoadDialog("Select Image");
if (result.bSuccess) {
string path = result.getPath();
}
The variable "path" will contain "C:\Images\?????.png"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the ofSystemLoadDialog entry point and the ofFileDialogResult getPath method described in the report, then trace how the selected Windows path is converted and returned. Reproduce the dialog with a non-Latin filename such as C:\Images\Вован.png; done means getPath preserves the original characters instead of returning question marks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100