[Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

Alexsander Rosa alexsander.rosa at gmail.com
Fri Apr 1 16:02:29 CEST 2016


Lazarus 1.4.4 with FPC 2.6.4. It's on a TLabel.

2016-03-30 13:36 GMT-03:00 Bart <bartjunk64 at gmail.com>:

> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Atenciosamente,
Alexsander da Rosa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160401/eee899b3/attachment-0002.html>


More information about the Lazarus mailing list