[fpc-pascal] 2.5.1: Ansi string constants vs Unicode

Tobias Giesen tobias_subscriber at tgtools.com
Sat Jul 10 22:14:14 CEST 2010


I've got 2.5.1 now. I have a string constant like this:

const Vec:AnsiString=#$094#$06D;

This should just be 8-bit data with no conversion.

But I get 
"Error: Unicodechar/string constants cannot be converted to 
 ansi/shortstring at compile-time."

Can I tell the compiler to interpret all string constants as
Ansi rather than Unicode?

I read the FPC UNICODE SUPPORT wiki page but it doesn't go into
such detail.

Kind Regards,
Tobias Giesen

Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany

Registered at register court Steinfurt as HRA 5061
Liability / general partner: TGTools Ltd.
Company No. 05513299
Registered in England and Wales
Directors: Tobias Giesen and Claudia Giesen

More information about the fpc-pascal mailing list