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

2010-07-10 Thread dmitry boyarintsev
On Sun, Jul 11, 2010 at 12:14 AM, Tobias Giesen tobias_subscri...@tgtools.com wrote: 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. try const Vec:AnsiString=#$94#$6D; thanks, dmitry

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

2010-07-10 Thread Jonas Maebe
On 10 Jul 2010, at 22:32, dmitry boyarintsev wrote: On Sun, Jul 11, 2010 at 12:14 AM, Tobias Giesen tobias_subscri...@tgtools.com wrote: 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. try

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

2010-07-10 Thread Tobias Giesen
const Vec:AnsiString=#$094#$06D; This should just be 8-bit data with no conversion. try const Vec:AnsiString=#$94#$6D; Works! Thanks Dmitry! Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2010-07-10 Thread Martin
On 10/07/2010 22:01, Jonas Maebe wrote: const Vec:AnsiString=#$094#$06D; This should just be 8-bit data with no conversion. try const Vec:AnsiString=#$94#$6D; I've now documented this change at

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

2010-07-10 Thread Jonas Maebe
On 10 Jul 2010, at 23:13, Martin wrote: It would be nice if there was(maybe there is) some way, of telling the compiler that the string is to be treaded as binary-data. Maybe like: {$codepage utf8} const {$codepage binary} // temporary change s1: shortstring = 'éà'; {$codepage utf8}