[fpc-pascal] Re: Widestrings length and character iteration

2007-05-09 Thread Christos Chryssochoidis
Daniël Mantione wrote: > > Op Mon, 7 May 2007, schreef Christos Chryssochoidis: > >> Daniël Mantione wrote: >>> Not possible, a widestring is UCS-2/UTF-16. >> I defined a widestring with 7 characters (code points), and the length() >> function returned the value 15. Of the 7 code points of tha

Re: [fpc-pascal] Re: Widestrings length and character iteration

2007-05-09 Thread Daniël Mantione
Op Wed, 9 May 2007, schreef Christos Chryssochoidis: > OK, I figured out what happened. The source file was saved in UTF-8 encoding, > but I hadn't put in my source file the compiler directive {$CODEPAGE UTF8}. > After including this directive in my code almost everything worked fine: > length()

Re: [fpc-pascal] Class Memory Table Size

2007-05-09 Thread Andrew Haines
Daniël Mantione wrote: > > Op Tue, 8 May 2007, schreef Andrew Haines: > >> The reason for this is, I want to trick gtk into thinking that a TObject >> is really a GObject. This is where the TypeID for GType's are stored. I >> know this won't work for most GObject's, but I am only implementing thi

[fpc-pascal] i386-darwin -> powerpc-darwin crash

2007-05-09 Thread Vincent Snijders
Hi, I tried to create powerpc units for the lcl on an intelmac, but the compiler crashes. Is this a known issue? Vincent Schindlers-iMac:~/src/lazarus/lcl fpcfan$ make CPU_TARGET=powerpc FPC=~/fpc/bin/fpc /bin/rm -f units/powerpc-darwin/alllclunits.ppu /bin/mkdir -p units/powerpc-darwin /Us

Re: [fpc-pascal] i386-darwin -> powerpc-darwin crash

2007-05-09 Thread Jonas Maebe
On 09 May 2007, at 19:59, Vincent Snijders wrote: I tried to create powerpc units for the lcl on an intelmac, but the compiler crashes. Is this a known issue? The compiler is trying to use RTL/packages units compiled by a native ppc compiler (most likely the ones globally installed on the

Re: [fpc-pascal] Class Memory Table Size

2007-05-09 Thread Daniël Mantione
Op Wed, 9 May 2007, schreef Andrew Haines: > Daniël Mantione wrote: > > > > Op Tue, 8 May 2007, schreef Andrew Haines: > > > >> The reason for this is, I want to trick gtk into thinking that a TObject > >> is really a GObject. This is where the TypeID for GType's are stored. I > >> know this w

Re: [fpc-pascal] i386-darwin -> powerpc-darwin crash

2007-05-09 Thread Vincent Snijders
Jonas Maebe schreef: On 09 May 2007, at 19:59, Vincent Snijders wrote: I tried to create powerpc units for the lcl on an intelmac, but the compiler crashes. Is this a known issue? The compiler is trying to use RTL/packages units compiled by a native ppc compiler (most likely the ones global