Yury Sidorov schreef:
From: "Daniël Mantione" <[EMAIL PROTECTED]>
Op Mon, 16 Jul 2007, schreef Yury Sidorov:

> > There must be, because the CRT unit currently seems to do such > > vodoo
> > (which is questionable behaviour by the way).
>
> Yes. It is possible to specify code pages for console, gui > controls, etc. But
> application must do it in runtime.

Perfect, this is what twide3 needs.

It is not possible to change code page used for wide<>ansi translation per applicaton.

> Oh, yes it will not work on Windows, because utf8 is not supported > here.
>
> Then, twide3.pp should be skipped on Windows, since it is not > possible to do
> it in locale independant way.

Well, the test could be adapted to use some kind of code page. It could
work on all platforms then.

This test will work on Windows only if utf8 support will be added to Windows rtl.


I changed my windows settings to Polish and it now uses codepage 1250 (before it was 1252), now it runs successfully.

Vincent
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to