[Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es
Bart
bartjunk64 at gmail.com
Wed Mar 30 18:36:41 CEST 2016
On 3/30/16, Alexsander Rosa <alexsander.rosa at gmail.com> wrote:
Which Lazarus version?
Which Fpc version?
Did you define DisableUtf8RTL in project options?
Lazarus trunk:
s := getappconfigdirutf8(false);
e := ExtractFilePath(getappconfigdirutf8(false));
showmessage('GetAppConfigDir(False) = '^m'"'+s+'"'+
^m^m'ExtractFilePath(GetAppConfigDir(False)) = '+
^m'"'+e+'"');
Gives me
[Window Title]
test
[Content]
GetAppConfigDir(False) =
"C:\Users\บลูเบอ\AppData\Local\test\"
ExtractFilePath(GetAppConfigDir(False)) =
"C:\Users\บลูเบอ\AppData\Local\test\"
[OK]
Notice that the username (บลูเบอ) is outside my current system
codepage and still isdisplayed correctly.
(The code for getAppConfigDirUtf8 in 1.6 does not differ from trunk.)
When do you see the "Configura??es", in a GUI window (like showmessage
or a TLabel) or when written to console with writeln??
Bart
More information about the Lazarus
mailing list