Unsolved QStandardPaths::standardLocations problem with non-English characters in username
-
Hi all!
I'm using Qt 5.5.1 on Windows 7 64 bits.
I'm trying to get the user data folder using:QString path = QStandardPaths::standardLocations(QStandardPaths::DataLocation).first();
My windows 7 username is "userñame", with an "ñ", a non-English character.
So path now contains:"C:/Users/user¤ame/AppData/Local/My Company/My product"
Instead of:
"C:/Users/userñame/AppData/Local/My Company/My product"
When I log in with a user like "Roberto", then I get the path correctly.
I've been reading out there. The guy here seems to have the same problem as me: https://bugreports.qt.io/browse/QTBUG-38954
They conclude that's a system misconfiguration, but not sure what kind of misconfiguration?Anyone having problems getting the user data folder with a username with non-English characters?
Is it a Qt issue, or a Windows 7 issue?Thanks!
Robert. -
Hi,
Is your Windows version configured in English and you are using Spanish characters ?
-
@SGaist No, this is a Spanish installation.
-
Can you reproduce that with a minimal project ? Essentially main which prints the value returned by
QStandardPaths::standardLocations(QStandardPaths::DataLocation).first();
?