Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Yury Sidorov
From: Jonas Maebe [EMAIL PROTECTED] 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

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Yury Sidorov
From: Daniël Mantione [EMAIL PROTECTED] Op Mon, 16 Jul 2007, schreef Yury Sidorov: 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. I know. How do you set it to a specific locale for the current

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Daniël Mantione
Op Mon, 16 Jul 2007, schreef Yury Sidorov: From: Daniël Mantione [EMAIL PROTECTED] Op Mon, 16 Jul 2007, schreef Yury Sidorov: 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. I know. How do

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Daniël Mantione
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

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Yury Sidorov
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

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Vincent Snijders
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

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Maxim Ganetsky
Vincent Snijders пишет: 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). snip I changed my windows settings to

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Vincent Snijders
Maxim Ganetsky schreef: Vincent Snijders пишет: 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). snip I

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Maxim Ganetsky
Vincent Snijders пишет: Maxim Ganetsky schreef: Vincent Snijders пишет: 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

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Vincent Snijders
Maxim Ganetsky schreef: Vincent Snijders пишет: No, this does not work. GetACP still returns the system setting. Where do you see GetACP? Instead of GetACP pass 1250. I don't see, it is what is used by WideCharToMultiByte(CP_ACP, 0, source, len+1, nil, 0, nil, nil); in

Re: [fpc-devel] twide3.pp on windows

2007-07-16 Thread Maxim Ganetsky
Vincent Snijders пишет: Maxim Ganetsky schreef: Vincent Snijders пишет: No, this does not work. GetACP still returns the system setting. Where do you see GetACP? Instead of GetACP pass 1250. I don't see, it is what is used by WideCharToMultiByte(CP_ACP, 0, source, len+1, nil, 0, nil,