[Lazarus] Problem with non-ascii chars fpc-3.0.0 vs fpc-3.1.1 under Windows

zeljko zeljko at holobit.net
Thu Apr 28 11:33:37 CEST 2016


On 04/27/2016 09:00 PM, Mattias Gaertner wrote:
> On Wed, 27 Apr 2016 20:30:43 +0200
> zeljko <zeljko at holobit.net> wrote:
>


> GetEnvironmentVariableUTF8 returns an UTF-8 encoded string.

This is not true under windows 10 + fpc-3.0.0 when user name is Željko.
CurrentDir & CurrentDirUTF8 returns C:\Users\Željko\test
GetAppConfigDirUTF8(False) returns C:\Users\Željko\test

GetEnvironmentVariable &
GetEnvironmentVariableUTF8
returns C:\Users\L"eljko <----- looks like wrong.


>
> What encoding do you need for the function result?

Same result as from eg GetAppConfigDirUTF8(False), so UTF8 but only 
homedir part (C:\Users\Željko)

zeljko






More information about the Lazarus mailing list