[fpc-devel] twide3.pp on windows

Yury Sidorov jura at cp-lab.com
Mon Jul 16 17:27:19 CEST 2007


From: "Daniƫl Mantione" <daniel.mantione at freepascal.org>
> Op Mon, 16 Jul 2007, schreef Yury Sidorov:
>
> > From: "Jonas Maebe" <jonas.maebe at elis.ugent.be>
> > > On 16 Jul 2007, at 16:32, Vincent Snijders wrote:
> > >
> > > > How is the twide3.pp test supposed to work?
> > >
> > > It assumes that the testsuite environment is configured to use 
> > > utf8. I
> > > don't know how to make it encoding-independent, nor how to 
> > > configure a
> > > Windows "console session" to always use utf8 (the testsuite 
> > > scripts of
> > > the automated testsuite runs on Linux, Solaris and Mac OS X all
> > > explicitly set the LANG environment variable to ensure this).
> >
> > Our Windows RTL use current ansi code page to perform 
> > widestring<->ansistring
> > conversions. utf8 can not be used.
>
> How to set the current code page on Windows? The actual code page 
> doesn't
> matter, but a fixed code page is needed for a deterministic test.

The code page (locale) is set in Control Panel for whole user session 
(or whole system).
It is not possible to set utf8 as locale.

We can create flag in System unit which control how 
widestring<->ansistring should be performed to enable utf8 on Windows.

Yury. 



More information about the fpc-devel mailing list