Re: [Harbour] codepage and RDD

2008-11-03 Thread Szakáts Viktor
Hi Przemek, [ Well, sorry in advance if I may look like contradicting myself along the line below. But along my answering I got to understand your idea better, and this gets reflected in reactions. Also, I didn't answer in "descending" order in all cases. But it's too late now to restart the wh

Re: [Harbour] codepage and RDD

2008-11-03 Thread Przemyslaw Czerpak
On Mon, 03 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > I'm probably not able to see all the implications of binary > data, but to me, binary data is just a bunch of 0x00-0xFF bytes > and that's it (sorry for my simplistic and ignorant POV). > Usually you don't sort binary data, and you don't do

Re: [Harbour] codepage and RDD

2008-11-03 Thread Szakáts Viktor
Hi Przemek, And here could come the advantage of being internally Unicode, since in this case the CP doesn't need to be added next to each string. And this is probably we should rather do, instead of introducing CP information for each string. And just catch the I/O points where such CP inform

Re: [Harbour] codepage and RDD

2008-11-03 Thread Przemyslaw Czerpak
On Mon, 03 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > And here could come the advantage of being internally Unicode, > since in this case the CP doesn't need to be added next to > each string. And this is probably we should rather do, instead > of introducing CP information for each string. And

Re: [Harbour] codepage and RDD

2008-11-03 Thread Szakáts Viktor
Hi Przemek, What about situations when part of expression is taken from your source code and other part from table? INDEX ON FOR MY_FIELD <= "[text with national character]" If you begin to implement it and resolve all problems which will appear then you will end with CDP pointer attached t

Re: [Harbour] codepage and RDD

2008-11-03 Thread Przemyslaw Czerpak
On Mon, 03 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, >> And what if it's FOR or WHILE clause of some RDD commands >> like INDEX ON ..., COUNT or SET FILTER? > I'd think INDEX ON expression is definitely RDD CP > context, just like FOR/WHILE and every other code > initiated by the RDD. What abou

Re: [Harbour] codepage and RDD

2008-11-03 Thread Szakáts Viktor
Hi Przemek, ? WA1->FIELD1 >= WA2->FIELD2 WA1 uses CP1, WA2 uses CP2 Please define RDD CP in this case? In this case there is no RDD CP context involved in my understanding, this is executed in the caller CP context. And what if it's FOR or WHILE clause of some RDD commands like INDEX ON ...

Re: [Harbour] codepage and RDD

2008-11-03 Thread Przemyslaw Czerpak
On Mon, 03 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, >> ? WA1->FIELD1 >= WA2->FIELD2 >> WA1 uses CP1, WA2 uses CP2 >> Please define RDD CP in this case? > In this case there is no RDD CP context involved in my > understanding, this is executed in the caller CP context. And what if it's FOR or W

Re: [Harbour] codepage and RDD

2008-11-03 Thread Szakáts Viktor
Hi Przemek, BTW I understand the problem of index callbacks, but HVM/RDD should make sure to execute these in the RDDs CP context. Which one? ? WA1->FIELD1 >= WA2->FIELD2 WA1 uses CP1, WA2 uses CP2 Please define RDD CP in this case? In this case there is no RDD CP context involved in my

Re: [Harbour] codepage and RDD

2008-11-03 Thread Przemyslaw Czerpak
On Mon, 03 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > BTW I understand the problem of index callbacks, but HVM/RDD > should make sure to execute these in the RDDs CP context. Which one? ? WA1->FIELD1 >= WA2->FIELD2 WA1 uses CP1, WA2 uses CP2 Please define RDD CP in this case? best regards,

Re: [Harbour] codepage and RDD

2008-11-03 Thread Szakáts Viktor
Hi Przemek, Per thread of course. I think this is very important. Right now we have multiple different things controlled by this one setting, and I have to risk an index corruption I think that you still do not understand that _THEY_ always will be controlled by this setting and you will onl

Re: [Harbour] codepage and RDD

2008-11-03 Thread Przemyslaw Czerpak
On Mon, 03 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > Per thread of course. I think this is very important. > Right now we have multiple different things controlled > by this one setting, and I have to risk an index corruption I think that you still do not understand that _THEY_ always will be

Re: [Harbour] codepage and RDD

2008-11-03 Thread Szakáts Viktor
Hi Przemek, Shouldn't we add a way to set the default codepage for RDD operations? It will be very danger option. The online CP translations are not revertible and break binary data stored in DBF fields. If someone does not use binary data then it's safe but if we make it global (thread) opt

Re: [Harbour] codepage and RDD

2008-11-03 Thread Przemyslaw Czerpak
On Mon, 03 Nov 2008, Szak�ts Viktor wrote: Hi Viktor, > Shouldn't we add a way to set the default > codepage for RDD operations? It will be very danger option. The online CP translations are not revertible and break binary data stored in DBF fields. If someone does not use binary data then it's

[Harbour] codepage and RDD

2008-11-02 Thread Szakáts Viktor
Hi Przemek and all, Shouldn't we add a way to set the default codepage for RDD operations? Right now I could pass it to each RDD function call (like dbCreate()) but that needs touching all such possible calls (which is error prone), moreover using a "dirty" parameter extension. Also, usually the