[fpc-devel] String constant without code page

2017-12-14 Thread Petr Kristan
Hi. I compile whole project with -FcUTF8, but sometimes should be useful to define string constant with CP_NONE to prevent conversions. Example: DefaultSystemCodePage:=1250 variable s contains text with cp=1250 s := s + '#'; //conversion because '#' has cp=65001 Is possible to define '#' witho

Re: [fpc-devel] String constant without code page

2017-12-14 Thread Sven Barth via fpc-devel
Am 14.12.2017 09:37 schrieb "Petr Kristan" : Hi. I compile whole project with -FcUTF8, but sometimes should be useful to define string constant with CP_NONE to prevent conversions. Example: DefaultSystemCodePage:=1250 variable s contains text with cp=1250 s := s + '#'; //conversion because '#'