Re: [fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Hans-Peter Diettrich
Jonas Maebe schrieb: To get behaviour that is compatible with Delphi2009+, compile with -Mdelphiunicode or {$modeswitch delphiunicode}. Do you mean {$mode delphiunicode}? Now I wonder about compilation at all. When I compile a console program on the commandline, most strings are readable in

Re: [fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Sven Barth
On 02.12.2014 00:01, Hans-Peter Diettrich wrote: Sven Barth schrieb: Am 01.12.2014 10:33 schrieb "Hans-Peter Diettrich" mailto:drdiettri...@aol.com>>: > Another one: > Delphi XE does not export the CP_xxx encoding constants from System.pas. This means that the encoding constants are not availa

Re: [fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Hans-Peter Diettrich
Jonas Maebe schrieb: Hans-Peter Diettrich wrote on ma, 01 dec 2014: To get behaviour that is compatible with Delphi2009+, compile with -Mdelphiunicode or {$modeswitch delphiunicode}. The compiler option (-M) works, but the $modeswitch is not accepted by the compiler (2.7.1): Illegal compil

Re: [fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Hans-Peter Diettrich
Sven Barth schrieb: Am 01.12.2014 10:33 schrieb "Hans-Peter Diettrich" >: > Another one: > Delphi XE does not export the CP_xxx encoding constants from System.pas. This means that the encoding constants are not available in (compatible) user code. It's not the f

Re: [fpc-devel] fpc trunk compile failure...

2014-12-01 Thread waldo kitty
On 12/1/2014 1:24 PM, waldo kitty wrote: i am going to make a copy of my bootstrap directory and attempt to update the existing files from the FPC 2.6.4 installation... i'll get back with the results... of course, my update script will pull a new revision from the repository during this process

Re: [fpc-devel] Option -Wp does not work with new embedded target

2014-12-01 Thread Sietse Achterop
Hello list, @Florian: thanks for finding my error. I saw that something was case insensitive, but not in this way(: it now works! @Michael: On 11/30/2014 08:14 PM, Michael Ring wrote: Please download my diff here: http://temp.michael-ring.org/fpc-arm.diff Please have a look at

Re: [fpc-devel] fpc trunk compile failure...

2014-12-01 Thread waldo kitty
On 12/1/2014 5:32 AM, Marco van de Voort wrote: In our previous episode, waldo kitty said: OS=Vista FTP Trunk=r29189 cd /d c:\freepascal\fpc\trunk rd /s /q c:\freepascal\fpc\trunk\examps make distclean TortoiseProc /command:update /path:"c:\freepascal\fpc\trunk" ren c:\freepascal\fpc\trunk\exa

Re: [fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Jonas Maebe
Hans-Peter Diettrich wrote on ma, 01 dec 2014: program rawtest; var s: AnsiString; //UTF8String; r: RawByteString; begin s := 'abc'; r := s; WriteLn('s CP: ',StringCodePage(s)); //1252 I forgot to mention that the above also prints 0 in FPC if you don't compile in mode delphiunico

Re: [fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Jonas Maebe
Hans-Peter Diettrich wrote on ma, 01 dec 2014: Now I could compile FPC 2.7.1 and perform some tests :-) Unfortunately I couldn't submit an bug report, so it comes here: When compiled with Delphi XE, the code below shows 1252 (my DefaultSystemCodePage) for all strings, be empty or non-empty.

Re: [fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Sven Barth
Am 01.12.2014 10:33 schrieb "Hans-Peter Diettrich" : > Another one: > Delphi XE does not export the CP_xxx encoding constants from System.pas. This means that the encoding constants are not available in (compatible) user code. It's not the first and likely not the last we export from a different u

Re: [fpc-devel] fpc trunk compile failure...

2014-12-01 Thread Marco van de Voort
In our previous episode, waldo kitty said: > > OS=Vista > FTP Trunk=r29189 > > cd /d c:\freepascal\fpc\trunk > rd /s /q c:\freepascal\fpc\trunk\examps > make distclean > TortoiseProc /command:update /path:"c:\freepascal\fpc\trunk" > ren c:\freepascal\fpc\trunk\examples examps > compiling FPC trun

[fpc-devel] Delphi incompatible encoding

2014-12-01 Thread Hans-Peter Diettrich
Now I could compile FPC 2.7.1 and perform some tests :-) Unfortunately I couldn't submit an bug report, so it comes here: When compiled with Delphi XE, the code below shows 1252 (my DefaultSystemCodePage) for all strings, be empty or non-empty. Compiled with FPC 2.7.1, the StringCodePage(r) is