Re: [fpc-pascal] problems using utf8toansi

2007-12-10 Thread Jonas Maebe
On 10 Dec 2007, at 08:43, Marc Santhoff wrote: You can compile with -al and search for CWSTRING in the assembler file generated for your main program. Since that unit has an initialization section, it will be in the init/final table if it's included somewhere. Hm, that's funny, the

Re: [fpc-pascal] problems using utf8toansi

2007-12-10 Thread Marc Santhoff
Am Montag, den 10.12.2007, 11:10 +0100 schrieb Jonas Maebe: On 10 Dec 2007, at 08:43, Marc Santhoff wrote: Confusing ... The system and sysutils units contain bare metal widestring support: i.e., widestring support which only works (as far as alphabetical ordering, upper/lowercase

Re: [fpc-pascal] problems using utf8toansi

2007-12-09 Thread Jonas Maebe
On 07 Dec 2007, at 20:01, Marc Santhoff wrote: Am Freitag, den 07.12.2007, 14:00 +0100 schrieb Jonas Maebe: Also, if you do not use the cwstring unit, a lot of things will not work with widestrings under *nix (including FreeBSD). The fact that some chars such as Umlauts and 'ß' work

Re: [fpc-pascal] problems using utf8toansi

2007-12-09 Thread Marc Santhoff
Am Sonntag, den 09.12.2007, 21:38 +0100 schrieb Jonas Maebe: On 07 Dec 2007, at 20:01, Marc Santhoff wrote: Am Freitag, den 07.12.2007, 14:00 +0100 schrieb Jonas Maebe: Also, if you do not use the cwstring unit, a lot of things will not work with widestrings under *nix (including

Re: [fpc-pascal] problems using utf8toansi

2007-12-09 Thread Marc Santhoff
Am Sonntag, den 09.12.2007, 21:38 +0100 schrieb Jonas Maebe: You can compile with -al and search for CWSTRING in the assembler file generated for your main program. Since that unit has an initialization section, it will be in the init/final table if it's included somewhere. Another try: $

Re: [fpc-pascal] problems using utf8toansi

2007-12-07 Thread Jonas Maebe
On 07 Dec 2007, at 07:43, Marc Santhoff wrote: output dbg: Description testing, one, two ... ? à dbg: /output Using german umlauts the same happens, the string is empty. When feeding in plain ascii the output is okay, the string is actually filled. On which platform with which

Re: [fpc-pascal] problems using utf8toansi

2007-12-07 Thread Jonas Maebe
On 07 Dec 2007, at 13:17, Marc Santhoff wrote: Am Freitag, den 07.12.2007, 11:28 +0100 schrieb Jonas Maebe: On 07 Dec 2007, at 07:43, Marc Santhoff wrote: output dbg: Description testing, one, two ... ? à dbg: /output Using german umlauts the same happens, the string is empty. When feeding

[fpc-pascal] problems using utf8toansi

2007-12-06 Thread Marc Santhoff
Hi, when using system.utf8toansi() the result is an empty string as soon as I put in some special chars: code {$H+} ... fDescription: String; ... function sDecode(sin: string): string; inline; begin result := utf8toansi(sin); end; ... fDescription :=