WIN32: Ensure the translated dialog strings are using the correct encoding
This commit is contained in:
parent
ca054ba0b9
commit
e4b78f4f62
3 changed files with 28 additions and 10 deletions
|
@ -138,11 +138,11 @@ Common::DialogManager::DialogResult Win32DialogManager::showFileBrowser(const ch
|
|||
hr = dialog->SetOptions(dwOptions);
|
||||
}
|
||||
|
||||
LPWSTR str = Win32::ansiToUnicode(title);
|
||||
LPWSTR str = Win32::ansiToUnicode(title, Win32::getCurrentCharset());
|
||||
hr = dialog->SetTitle(str);
|
||||
delete[] str;
|
||||
|
||||
str = Win32::ansiToUnicode(_("Choose"));
|
||||
str = Win32::ansiToUnicode(_("Choose"), Win32::getCurrentCharset());
|
||||
hr = dialog->SetOkButtonLabel(str);
|
||||
delete[] str;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue