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

2016-05-23 Thread Denis Kozlov
On 23 May 2016 at 15:23, 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. > > T

[fpc-devel] .long values in DWARF Symbols

2016-05-23 Thread Michael Ring
I have started again to work on pic32 (mipsel-embedded) target and found an issue in the Dwarf Debug Info: (Please also refer to this old discussion on the problem: http://lists.freepascal.org/fpc-devel/2013-July/032447.html ) The problem is that .long should be replaced with .4byte for debu

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

2016-05-23 Thread Jonas Maebe
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 t

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

2016-05-23 Thread Michael Van Canneyt
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

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

2016-05-23 Thread Jonas Maebe
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. The only solution for this is a unicode RTL. That is incorrec

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

2016-05-23 Thread Michael Van Canneyt
The typecase will not help you, since the result is an ansistring. The result will still be crippled. The only solution for this is a unicode RTL. Michael. On Mon, 23 May 2016, Denis Kozlov wrote: P.S. A minor typo, GetEnvironmentVariableA should read GetEnvironmentStringsA. On 23 May 201

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-05-23 Thread Maciej Izak
2016-04-13 13:46 GMT+02:00 Michael Van Canneyt : > On Wed, 13 Apr 2016, Maciej Izak wrote: > > 2016-04-13 13:03 GMT+02:00 Michael Van Canneyt : >> >> Sorry. This is simply very bad design. >>> >>> >> I agree with many points. Frankly, I was surprised that they did something >> like using attribute

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

2016-05-23 Thread Denis Kozlov
P.S. A minor typo, GetEnvironmentVariableA should read GetEnvironmentStringsA. On 23 May 2016 at 13:31, Denis Kozlov wrote: > Hi, > > In FPC 3.0.0 and TRUNK for Windows: > > SysUtils.GetEnvironmentVariable(String) uses GetEnvironmentVariableA > > SysUtils.GetEnvironmentVariable(UnicodeString) u

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

2016-05-23 Thread Denis Kozlov
Hi, In FPC 3.0.0 and TRUNK for Windows: > SysUtils.GetEnvironmentVariable(String) uses GetEnvironmentVariableA > SysUtils.GetEnvironmentVariable(UnicodeString) uses GetEnvironmentStringsW GetEnvironmentVariableA produces a result crippled by ANSI/OEM. Can it be replaced with a simple typecast of