Re: [fpc-devel] GetConnectionDef in the interface section

2007-07-16 Thread Michael Van Canneyt
On Sun, 15 Jul 2007, Joao Morais wrote: > > Hello, > > It's possible include the following declaration: > > function GetConnectionDef(ConnectorName: string): TConnectionDef; > > in the interface section of the sqldb unit and merge to 2.2? Moving it to interface is not a problem. Merge to 2.

Re: [fpc-devel] Having an always utf-8 string

2007-07-16 Thread Daniël Mantione
Op Mon, 16 Jul 2007, schreef Felipe Monteiro de Carvalho: > Hi, > > I would like which would be the theoritical way that Free Pascal could > support an always utf-8 encoded string (if it will be supported). With > that I mean a string which when set by code is converted from > widestring to utf

Re: [fpc-devel] graphh.inc - few questions.

2007-07-16 Thread Jonas Maebe
On 14 Jul 2007, at 16:01, Evgeniy Ivanov wrote: I'm doing sdlgraph - so I put my self to packages/base/graph. graph probably has to be moved to packages/extra, so it can easily use things like sdl and the (Mac OS X) universal interfaces. I can't understand the method (where are they used

Re: [fpc-devel] Please merge SSE detecion fix to fixes_2_2

2007-07-16 Thread Jonas Maebe
On 15 Jul 2007, at 07:27, Martin Schreiber wrote: Can the fix for Mantis 9242 (Debugging broken on win32 with PII) be merged to fixes_2_2? Independent from this, I would encourage you to submit a bug report against gdb for win32. If they don't know this is broken, they can't fix it.

[fpc-devel] Running test suite for 2.1.4 on linux/sparc

2007-07-16 Thread Mark Morgan Lloyd
I've been tinkering for a few weeks, hoping eventually to get Lazarus running on linux/sparc. I'm currently using FPC 2.1.4, apologies for not being nearer the "bleeding edge". I've got problems with Lazarus that I suspect could be connected with code generation, because of this I've stepped b

Re: [fpc-devel] Please merge SSE detecion fix to fixes_2_2

2007-07-16 Thread Yury Sidorov
From: "Jonas Maebe" <[EMAIL PROTECTED]> On 15 Jul 2007, at 07:27, Martin Schreiber wrote: Can the fix for Mantis 9242 (Debugging broken on win32 with PII) be merged to fixes_2_2? Independent from this, I would encourage you to submit a bug report against gdb for win32. If they don't know t

Re: [fpc-devel] Please merge SSE detecion fix to fixes_2_2

2007-07-16 Thread Vincent Snijders
Yury Sidorov schreef: From: "Jonas Maebe" <[EMAIL PROTECTED]> On 15 Jul 2007, at 07:27, Martin Schreiber wrote: Can the fix for Mantis 9242 (Debugging broken on win32 with PII) be merged to fixes_2_2? Independent from this, I would encourage you to submit a bug report against gdb for win3

Re: [fpc-devel] Running test suite for 2.1.4 on linux/sparc

2007-07-16 Thread Jonas Maebe
On 16 Jul 2007, at 14:12, Mark Morgan Lloyd wrote: /fpcbuild-2.1.4/fpcsrc/compiler/ppcsparc -n -FEsparc-linux -Tlinux popuperr.pp make[1]: Leaving directory `/fpcbuild-2.1.4/fpcsrc/tests/units' /bin/cp -fp test/cg/obj/linux/sparc/ctest.o test/cg /bin/cp -fp test/cg/obj/linux/sparc/tcext3.o t

Re: [fpc-devel] GetConnectionDef in the interface section

2007-07-16 Thread Joao Morais
Michael Van Canneyt wrote: On Sun, 15 Jul 2007, Joao Morais wrote: Hello, It's possible include the following declaration: function GetConnectionDef(ConnectorName: string): TConnectionDef; in the interface section of the sqldb unit and merge to 2.2? Moving it to interface is not a problem

Re: [fpc-devel] Running test suite for 2.1.4 on linux/sparc

2007-07-16 Thread Mark Morgan Lloyd
Jonas Maebe wrote: /fpcbuild-2.1.4/fpcsrc/compiler/ppcsparc -n -FEsparc-linux -Tlinux popuperr.pp make[1]: Leaving directory `/fpcbuild-2.1.4/fpcsrc/tests/units' /bin/cp -fp test/cg/obj/linux/sparc/ctest.o test/cg /bin/cp -fp test/cg/obj/linux/sparc/tcext3.o test/cg /bin/cp: cannot stat `test/

Re: [fpc-devel] Running test suite for 2.1.4 on linux/sparc

2007-07-16 Thread Jonas Maebe
On 16 Jul 2007, at 16:12, Mark Morgan Lloyd wrote: Incidentally, something curious here. You might remember that a week ago I was getting stuck on the inconsistent register- assignment nasty, I built and installed an apparently-working 2.1.4 shortly after you pointed out that it tended to b

[fpc-devel] twide3.pp on windows

2007-07-16 Thread Vincent Snijders
How is the twide3.pp test supposed to work? If I run this in windows, the widestring is converted to an ansistring of length 5 with some wrong chars. Do I need to set a special code page and how can I do that? Vincent ___ fpc-devel maillist - fpc-d

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

2007-07-16 Thread Yury Sidorov
From: "Vincent Snijders" <[EMAIL PROTECTED]> How is the twide3.pp test supposed to work? If I run this in windows, the widestring is converted to an ansistring of length 5 with some wrong chars. Do I need to set a special code page and how can I do that? As I see, on Windows widestring is co

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

2007-07-16 Thread Jonas Maebe
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 t

Re: [fpc-devel] Running test suite for 2.1.4 on linux/sparc

2007-07-16 Thread Mark Morgan Lloyd
Jonas Maebe wrote: Incidentally, something curious here. You might remember that a week ago I was getting stuck on the inconsistent register-assignment nasty, I built and installed an apparently-working 2.1.4 shortly after you pointed out that it tended to be a transiant problem. Odd thing is

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 "consol

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

2007-07-16 Thread Daniël Mantione
Op Mon, 16 Jul 2007, schreef 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

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: > 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 config

Re: [fpc-devel] Having an always utf-8 string

2007-07-16 Thread peter green
Felipe Monteiro de Carvalho wrote: Hi, I would like which would be the theoritical way that Free Pascal could support an always utf-8 encoded string (if it will be supported). With that I mean a string which when set by code is converted from widestring to utf-8 in despite of any environmental c

Re: [fpc-devel] Please merge SSE detecion fix to fixes_2_2

2007-07-16 Thread Martin Schreiber
On Monday 16 July 2007 14.05, Jonas Maebe wrote: > Independent from this, I would encourage you to submit a bug report > against gdb for win32. If they don't know this is broken, they can't > fix it. > I fear that I am not the right person to report the bug because my knowledge of the debug intern

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

2007-07-16 Thread Daniël Mantione
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 application? > We can create flag in System unit w

Re: [fpc-devel] Please merge SSE detecion fix to fixes_2_2

2007-07-16 Thread Jonas Maebe
On 16 Jul 2007, at 18:08, Martin Schreiber wrote: On Monday 16 July 2007 14.05, Jonas Maebe wrote: Independent from this, I would encourage you to submit a bug report against gdb for win32. If they don't know this is broken, they can't fix it. I fear that I am not the right person to report

Re: [fpc-devel] GetConnectionDef in the interface section

2007-07-16 Thread Michael Van Canneyt
On Mon, 16 Jul 2007, Joao Morais wrote: > Michael Van Canneyt wrote: > > > > On Sun, 15 Jul 2007, Joao Morais wrote: > > > > > Hello, > > > > > > It's possible include the following declaration: > > > > > > function GetConnectionDef(ConnectorName: string): TConnectionDef; > > > > > > in the in

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 appl

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.

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: > 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). > > >

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,

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.

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

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). > I changed my windows setti

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). > 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 behav

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 Win32Wide2AnsiMove

Re: [fpc-devel] Running test suite for 2.1.4 on linux/sparc

2007-07-16 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Tests still running, more later. OK, I think it's stuck. It's been sitting here for the last few hours: utils/dotest -c/fpcbuild-2.1.4/fpcsrc/compiler/ppcsparc -e test/tmmx1.pp Abort: Compiler cpu "sparc" is not in list "i386" utils/dotest -c/fpcbuild-2.1.4/fpcsrc/com

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, ni