[fpc-pascal] Default source encoding

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Mar 31 14:27:20 CEST 2016

On Thu, 31 Mar 2016 14:14:14 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:

> > What happens on a Russian system cp1251 with a cp1251 AnsiString
> > literal?
> >
> > writeln('Привет');
> Careful, writing may change the codepage.

Yes, I know. That's why it is important that the compiler uses the
right conversion (CP1251 Win Cyrillic to CP866 DOS Cyrillic).

If the compiler assumes CP1252 on a CP1251 system, then the writeln
should write garbage. Correct?


More information about the fpc-pascal mailing list