[fpc-devel] SysUtils.GetEnvironmentVariable(String) still uses GetEnvironmentVariableA

Jonas Maebe jonas.maebe at elis.ugent.be
Mon May 23 16:39:25 CEST 2016


Michael Van Canneyt wrote on Mon, 23 May 2016:

> On Mon, 23 May 2016, Jonas Maebe wrote:
>
>> Michael Van Canneyt wrote on Mon, 23 May 2016:
>>
>>> The typecase will not help you, since the result is an ansistring.
>>> The result will still be crippled.
>>
>> It would help when DefaultSystemCodePage is changed to UTF-8, as  
>> Lazarus does.
>
> Should that not be multibytecodepage or so ?

The proper way to change DefaultSystemCodePage is by calling  
SetMultiByteConversionCodePage(), yes.


Jonas



More information about the fpc-devel mailing list