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

2016-04-01 Thread Denis Kozlov
On 30/03/2016 14:45, Alexsander Rosa wrote: How can I get GetAppConfigDir correctly on Windows XP (PT-BR)? The path includes the word "configurações" (settings, in portuguese). dir_config := ExtractFilePath(GetAppConfigDirUTF8(false)); Any hints? Can you reproduce this problem if you

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

2016-04-01 Thread Denis Kozlov
On 01/04/2016 22:03, Bart wrote: So, also on the 1.6 branch we directly call the Windows Wide API (provided you are NOT on a Win9x system). Sorry Bart, you are right. I overlooked "Win32MajorVersion <= 4" after seeing "{$ifndef WinCE}". I went straight to GetAppConfigDirAnsi to discover

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

2016-04-01 Thread Bart
On 4/1/16, Denis Kozlov wrote: > Yes, Lazarus 1.7 uses SHGetFolderPath directly. Lazarus 1.6 fixes branch > still uses GetWindowsSpecialDir. >From the 1.6 fixes brach, file ($lazarus)/components/lazutils/winlazfileutils.inc This happens in the initialization section when

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

2016-04-01 Thread Bart
On 4/1/16, Denis Kozlov wrote: > This issue also affects Lazarus 1.6 and FPC 3.0+. > > GetWindowsSpecialDir in FPC 3.0.0 and trunk has severe encoding and buffer > overrun issues. SHGetFolderPath links to SHGetFolderPathW if > FPC_UNICODE_RTL is defined. But

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

2016-04-01 Thread Denis Kozlov
On 1 April 2016 at 16:55, Denis Kozlov wrote: > In Lazarus 1.4.4, GetAppConfigDirUTF8 and GetAppConfigFileUTF8 internally > use GetAppConfigDirAnsi and GetAppConfigFileAnsi (unless running on Windows > CE), respectively. These functions call ANSI version of Windows API and >

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

2016-04-01 Thread Denis Kozlov
On 1 April 2016 at 15:02, Alexsander Rosa wrote: > Lazarus 1.4.4 with FPC 2.6.4. > In Lazarus 1.4.4, GetAppConfigDirUTF8 and GetAppConfigFileUTF8 internally use GetAppConfigDirAnsi and GetAppConfigFileAnsi (unless running on Windows CE), respectively. These functions

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

2016-04-01 Thread Alexsander Rosa
Lazarus 1.4.4 with FPC 2.6.4. It's on a TLabel. 2016-03-30 13:36 GMT-03:00 Bart : > On 3/30/16, Alexsander Rosa wrote: > > Which Lazarus version? > Which Fpc version? > Did you define DisableUtf8RTL in project options? > > Lazarus trunk: > > s

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

2016-03-30 Thread Bart
On 3/30/16, Alexsander Rosa 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)

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

2016-03-30 Thread Alexsander Rosa
How can I get GetAppConfigDir correctly on Windows XP (PT-BR)? The path includes the word "configurações" (settings, in portuguese). dir_config := ExtractFilePath(GetAppConfigDirUTF8(false)); Any hints? -- Atenciosamente, Alexsander da Rosa -- ___