Re: [fpc-devel] TSdfDataset does not work with records larger then 255 chars

2008-09-07 Thread Martin Schreiber
On Monday 08 September 2008 04.53:25 Felipe Monteiro de Carvalho wrote: > Hello, > > Using TSdfDataset my records are cut to fit 255 chars, even when I > change the new MaxRecordLength property to 2048. This is a very > elusive bug, and I am searching all over for the cause without success > =( > >

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-07 Thread Martin Schreiber
On Sunday 07 September 2008 21.23:24 Florian Klaempfl wrote: > > > > Trunk 11723 does not compile: > > Trunk or unicodestring branch? Strange, because here it works? Unicodestring branch, sorry, I should change the directory name of my switched checkout. Does your unicodestring branch compile? M

[fpc-devel] TSdfDataset does not work with records larger then 255 chars

2008-09-07 Thread Felipe Monteiro de Carvalho
Hello, Using TSdfDataset my records are cut to fit 255 chars, even when I change the new MaxRecordLength property to 2048. This is a very elusive bug, and I am searching all over for the cause without success =( I searched everywhere for a shortstring, which could be the cause, but didn't find an

Re: [fpc-devel] Sdf / Fixed maximum line length flexibilization

2008-09-07 Thread Inoussa OUEDRAOGO
2008/9/7 Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>: > On 9/7/08, Inoussa OUEDRAOGO <[EMAIL PROTECTED]> wrote: >> property MaxStringLength read FMaxStringLength write >> FMaxStringLength default 250; > > I went for this, but named it MaxRecordLength. even better. -- Inoussa O. _

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-07 Thread Florian Klaempfl
Martin Schreiber schrieb: On Sunday 07 September 2008 10.58:03 Florian Klaempfl wrote: Martin Schreiber schrieb: On Saturday 06 September 2008 21.08:50 Florian Klaempfl wrote: Martin Schreiber schrieb: Next problem is that pmsechar(msestring) returns a NIL pointer if msestring = ''. As design

Re: [fpc-devel] Sdf / Fixed maximum line length flexibilization

2008-09-07 Thread Felipe Monteiro de Carvalho
On 9/7/08, Inoussa OUEDRAOGO <[EMAIL PROTECTED]> wrote: > property MaxStringLength read FMaxStringLength write > FMaxStringLength default 250; I went for this, but named it MaxRecordLength. Always good to hear other oppinions =) Commited to trunk. I don't know if there are plans for a 2.2.4,

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-07 Thread Martin Schreiber
On Sunday 07 September 2008 10.58:03 Florian Klaempfl wrote: > Martin Schreiber schrieb: > > On Saturday 06 September 2008 21.08:50 Florian Klaempfl wrote: > >> Martin Schreiber schrieb: > >>> Next problem is that pmsechar(msestring) returns a NIL pointer if > >>> msestring = ''. As designed? The b

Re: [fpc-devel] Sdf / Fixed maximum line length flexibilization

2008-09-07 Thread Inoussa OUEDRAOGO
Hi > Felipe Monteiro de Carvalho wrote: >> >> function StoreToBuf(Source: String): String; virtual; >> public >> +MAXSTRLEN: Integer; > > If you don't object, this is a bit ugly to my taste. Why not 'FMaxStrLen', > and have a property MaxStrLen: read FMaxStrLen ? Looks better to me. I s

Re: [fpc-devel] Sdf / Fixed maximum line length flexibilization

2008-09-07 Thread Micha Nelissen
Felipe Monteiro de Carvalho wrote: function StoreToBuf(Source: String): String; virtual; public +MAXSTRLEN: Integer; If you don't object, this is a bit ugly to my taste. Why not 'FMaxStrLen', and have a property MaxStrLen: read FMaxStrLen ? Looks better to me. Micha

[fpc-devel] Sdf / Fixed maximum line length flexibilization

2008-09-07 Thread Felipe Monteiro de Carvalho
Hello, Sdf / Fixed datasets have a constant for the maximum line size, but this one is too small for me, so I changed the constant into a field in the class so it can be customized. I tested and it works for me. I just thougth someone may have a better idea, so I am showing the patch here for rev

[fpc-devel] patch for ReadInteger in sysformt.inc

2008-09-07 Thread Markus Beth
arisons with '0' and '9'. The rest of the patch only unifies the casing of the variable chpos. Markus diff -Naur fpc-20080907/rtl/objpas/sysutils/sysformt.inc fpc-readintegerpatch/rtl/objpas/sysutils/sysformt.inc --- fpc-20080907/rtl/objpas/sysutils/sysformt.inc 2008-04

Re: [fpc-devel] Unicodestring branch, please test and help fixing

2008-09-07 Thread Florian Klaempfl
Martin Schreiber schrieb: On Saturday 06 September 2008 21.08:50 Florian Klaempfl wrote: Martin Schreiber schrieb: Next problem is that pmsechar(msestring) returns a NIL pointer if msestring = ''. As designed? The behaviour of ansistring and widestring was very useful, I'd like if UnicodeStrin