openframeworks / openframeworks/openFrameworks

ofFileDialogResult getPath return wrong path in Windows if path contains non-latin characters

Open
#6,574 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.