[fpc-pascal] problems using utf8toansi
Hi, when using system.utf8toansi() the result is an empty string as soon as I put in some special chars: {$H+} ... fDescription: String; ... function sDecode(sin: string): string; inline; begin result := utf8toansi(sin); end; ... fDescription := sDecode(Item[i].FirstChild.NodeValue); writeln('dbg: '+Item[i].FirstChild.NodeValue); writeln('dbg: '+fDescription); Description testing, one, two ... € à Description testing, one, two ... ⬠dbg: Description testing, one, two ... ? à dbg: Using german umlauts the same happens, the string is empty. When feeding in plain ascii the output is okay, the string is actually filled. I fear this is another problem using the rather old fpc 2.0.4, but what's going on here? TIA, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]
Michael Van Canneyt wrote: > > On Thu, 6 Dec 2007, Andrew Haines wrote: > >> Andrew Haines wrote: >>> Attached is a patch to add chm output to fpdoc. I edited Makefile.fpc to >>> require the "package" chm. Also a patch for chmwriter.pas with some >>> minor changes that were needed. >> Don't apply this patch. I have improved it a bit and now fpdoc (here) >> can autogenerate a TOC. Later this morning I will work on autogenerating >> an Index. > > Great news ! > Is this TOC page available in all formats, or just for chm ? > I would for obvious reasons prefer the first ;-) The TOC is not made to be generically usable sorry :( > >> The Index will have all classes, enums, consts, procedures and functions >> listed in alphabetical order in the above format. > > This is enough, I think... > > Great work ! > > Michael. Okay, here's the patch. it adds the ability to have fpdoc output chm's which have an autogenerated toc and index. to import the .xct files from another package/chm looks like this: --import=/path/to/rtl.xct,ms-its:rtl.chm::/ --import=/path/to/fcl.xct,ms-its:fcl.chm::/ There's a seriously huge improvement in speed of the chm code when compiled with -Ooregvar. I added it to the Makefile.fpc in the packages/chm directory. I guess the Makefile will have to be regenerated. Regards, Andrew PS you can have a peek at some chm's I made with fpdoc here: http://hainesservice.com/andrew/chms/ they are all crosslinked. fpdoc-chm.tar.bz2 Description: BZip2 compressed data ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] can we have fpc's doc in chm format?
Bisma Jayadi wrote: I once made a chm from the html files, but the index generated by the help compiler was horrible. Agree. However, I was finally able to finish this job last night. It took me about 6 hours to re-arrange the index files, manually. For everyone who is interested, fpc docs in chm format can be downloaded at: http://www.esnips.com/doc/04496e39-6105-423d-b571-b0766990b060/fpc-2.2.0-docs (5.8 MB compressed) The source was taken from fpc's html files converted to chm using winCHM. As a bonus, I included fpc/lazarus class diagram with the chm. I also had removed all unfinished pages (html files with no content but they are there). Hopefully, next fpc release would be able to provide chm format like this automagically so I don't need to do this again. :-D Hope this helps. -Bee- Thank you very much for all your efforts.. I just downloaded and began to use it at once. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] copy(), length(), and setlength() is not mentioned in fpc docs?
--- Daniël Mantione <[EMAIL PROTECTED]> wrote: > > > Op Wed, 5 Dec 2007, schreef Bee: > > > Hi all, > > > > Is it just me or above methods are indeed not mentioned within fpc's doc > > 2.2.0? Any texts that are supposed to be a link to above methods is not > formed > > as a link. > > > > Just to make sure, before I'll report this to mantis as a "bug". :) > > http://www.freepascal.org/docs-html/rtl/system/stringfunctions.html There are no links for those functions. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OOT: fpc 2.2.1 breaks laz 9.25
So it seems there the file does not exist in revision 9290 of the repository you are using. In Andrey's version it does, so my best guess is that both of you are using different SVN paths and the file was moved in yours. As mentioned in http://www.freepascal.org/develop.var, my path points to http://svn.freepascal.org/svn/fpc/branches/fixes_2_2 Is it correct? -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] can we have fpc's doc in chm format?
On Thu, 6 Dec 2007, Andrew Haines wrote: > Andrew Haines wrote: > > Attached is a patch to add chm output to fpdoc. I edited Makefile.fpc to > > require the "package" chm. Also a patch for chmwriter.pas with some > > minor changes that were needed. > > Don't apply this patch. I have improved it a bit and now fpdoc (here) > can autogenerate a TOC. Later this morning I will work on autogenerating > an Index. Great news ! Is this TOC page available in all formats, or just for chm ? I would for obvious reasons prefer the first ;-) > The Index will have all classes, enums, consts, procedures and functions > listed in alphabetical order in the above format. This is enough, I think... Great work ! Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] can we have fpc's doc in chm format?
Andrew Haines wrote: > Attached is a patch to add chm output to fpdoc. I edited Makefile.fpc to > require the "package" chm. Also a patch for chmwriter.pas with some > minor changes that were needed. Don't apply this patch. I have improved it a bit and now fpdoc (here) can autogenerate a TOC. Later this morning I will work on autogenerating an Index. Currently for the TOC I have: Classes and Objects, by Unit UnitName1 TClass1 TClass2 UnitName2 TClass40 TClass41 Alphabetical Classes and Objects TC TClass1 TClass2 TS TSimpleClass Routines, by Unit Unit1 AddNumbers ConvertSomething Unit2 JumpUpAndDown Alphabetical Routines Listing A AddNumbers C ConvertSomething J JumpUpAndDown Is there another way to sort that someone can think of? If it's not too time consuming I'll do it. For the Index I have the following plan for layout: Abs function ColumnClick TCustomListView Read TStream TMemoryStream Read method TCustomListView ActionChange AddItem ColumnClick TMemoryStream Read Write TStream Read Write vsIcon Write TMemoryStream TStream Write method The Index will have all classes, enums, consts, procedures and functions listed in alphabetical order in the above format. Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] copy(), length(), and setlength() is not mentioned in fpc docs?
On Dec 5, 2007 5:18 AM, Tom Verhoeff <[EMAIL PROTECTED]> wrote: > On Wed, Dec 05, 2007 at 09:12:00AM +0100, Daniël Mantione wrote: > > > > Op Wed, 5 Dec 2007, schreef Bee: > > > > > Is it just me or above methods are indeed not mentioned within fpc's doc > > > 2.2.0? Any texts that are supposed to be a link to above methods is not > > > formed > > > as a link. > > > > http://www.freepascal.org/docs-html/rtl/system/stringfunctions.html > > These functions are not only for strings, but (more generally) for dynamic > arrays (as well). I haven't checked to see if they are documented there, > but one would expect/hope so. > > Can someone confirm this? The fact that SetLength is usable for dynamic arrays is mentioned here : http://www.freepascal.org/docs-html/ref/refsu14.html#x36-390003.3.1 But I couldn't find anywhere the list of functions that can be used to perform operations on dynamic arrays . It is not intuitive nor logical to guess that the string functions are valid for dynamic arrays as well , therefore it looks like the dynamic array functions are in need of being explained better. Cheers, Adrian Maier ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] can we have fpc's doc in chm format?
Nice. Thank you. - Original Message - From: "Marco van de Voort" <[EMAIL PROTECTED]> Subject: Re: [fpc-pascal] can we have fpc's doc in chm format? > For > everyone who is interested, fpc docs in chm format can be downloaded > at: > http://www.esnips.com/doc/04496e39-6105-423d-b571-b0766990b060/fpc-2.2.0-docs > (5.8 MB compressed) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OOT: fpc 2.2.1 breaks laz 9.25
On Thursday 06 December 2007 13:00, Bee wrote: > > Easy way to check: > > svn up -r 9290 $(FPCDIR)/packages/paszlib/src/zstream.pp > > Next 'svn up' updates zstream.pp back to HEAD revision. > > Here's what I got... > > [EMAIL PROTECTED]:/svn/fpc-2.2.1$ svn update -r9290 > packages/paszlib/src/zstream.pp Dpackages/paszlib/src/zstream.pp > Updated to revision 9290. So it seems there the file does not exist in revision 9290 of the repository you are using. In Andrey's version it does, so my best guess is that both of you are using different SVN paths and the file was moved in yours. Vinzent. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OOT: fpc 2.2.1 breaks laz 9.25
* Bee <[EMAIL PROTECTED]> [Thu, 06 Dec 2007 19:00:04 +0700]: > svn up -r 9290 $(FPCDIR)/packages/paszlib/src/zstream.pp > Next 'svn up' updates zstream.pp back to HEAD revision. on my: --- cd C:\Works-FPC\fpc-snap\packages\paszlib\src ...>svn update -r9290 zstream.pp Uzstream.pp Updated to revision 9290. --- that's all go to compilation... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OOT: fpc 2.2.1 breaks laz 9.25
Easy way to check: svn up -r 9290 $(FPCDIR)/packages/paszlib/src/zstream.pp Next 'svn up' updates zstream.pp back to HEAD revision. Here's what I got... [EMAIL PROTECTED]:/svn/fpc-2.2.1$ svn update -r9290 packages/paszlib/src/zstream.pp Dpackages/paszlib/src/zstream.pp Updated to revision 9290. So, instead of getting rev 9290, it deletes the file. :( To make the change more permanent (locally, of course): svn merge -rHEAD:9290 $(FPCDIR)/packages/paszlib/src/zstream.pp Here's what I got... [EMAIL PROTECTED]:/svn/fpc-2.2.1$ svn merge -rHEAD:9290 packages/paszlib/src/zstream.pp svn: The location for 'packages/paszlib/src/zstream.pp' for revision 9290 does not exist in the repository or refers to an unrelated object So, both attempt failed. :( Install rapidSVN produced exactly same result. To all: Sorry if this thread goes a little bit out of topic. I'm new to svn system. :) -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc 2.2.1 breaks laz 9.25
On Thursday 06 December 2007 12:22, Bee wrote: > > Revert the file $(FPCDIR)\packages\paszlib\src\zstream.pp to > > revision 9290 > > Sorry if I sound silly, but how to revert to specific rev number? svn > revert command doesn't expect a number. :( Easy way to check: svn up -r 9290 $(FPCDIR)/packages/paszlib/src/zstream.pp Next 'svn up' updates zstream.pp back to HEAD revision. To make the change more permanent (locally, of course): svn merge -rHEAD:9290 $(FPCDIR)/packages/paszlib/src/zstream.pp This merges in the changes between 9290 and HEAD, but backwards, effectively reverting the file back to the 9290 revision. HTH, Vinzent. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc 2.2.1 breaks laz 9.25
* Bee <[EMAIL PROTECTED]> [Thu, 06 Dec 2007 18:22:25 +0700]: > Revert the file $(FPCDIR)\packages\paszlib\src\zstream.pp to revision 9290 Sorry if I sound silly, but how to revert to specific rev number? svn revert command doesn't expect a number. :( svn update -r 9290 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc 2.2.1 breaks laz 9.25
Revert the file $(FPCDIR)\packages\paszlib\src\zstream.pp to revision 9290 Sorry if I sound silly, but how to revert to specific rev number? svn revert command doesn't expect a number. :( -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc 2.2.1 breaks laz 9.25
Hi Bee, Revert the file $(FPCDIR)\packages\paszlib\src\zstream.pp to revision 9290 -- Att, Wanderlan Santos dos Anjos On Dec 5, 2007 12:31 PM, Bee <[EMAIL PROTECTED]> wrote: > Hi all, > > http://www.freepascal.org/mantis/view.php?id=10327 > > This bug makes Lazarus 9.25 SVN unusable. Here are the output of lazarus > after compiled by fpc 2.2.1 SVN: > > [EMAIL PROTECTED]:~/Programs/laz-9.25$ sudo make clean > <--- snip ---> > > [EMAIL PROTECTED]:~/Programs/laz-9.25$ make all LCL_PLATFORM=gtk2 > <--- snip ---> > > [EMAIL PROTECTED]:~/Programs/laz-9.25$ sudo make install > <--- snip ---> > > [EMAIL PROTECTED]:~/Programs/laz-9.25$ lazarus-ide > TApplication.IconChanged - TODO: convert this message...no > implementation in gtk or win32 > [FORMS.PP] ExceptionOccurred > Sender=Ecompressionerror > Exception=buffer error > Stack trace: > $081A6BCE > $081A006B > $0819FE44 > $0819B1CD > $08198EB1 > $08139A51 TFPIMAGEBITMAP__READSTREAM, line 1926 of graphics.pp > $0812F004 TBITMAP__LOADFROMSTREAM, line 459 of ./include/bitmap.inc > $0812A920 LOADBITMAPFROMLAZARUSRESOURCE, line 1509 of graphics.pp > $0808DE8A TSPLASHFORM__CREATE, line 94 of splash.pp > $0805BACF main, line 88 of lazarus.pp > TApplication.HandleException buffer error > Stack trace: > $081A6BCE > $081A006B > $0819FE44 > $0819B1CD > $08198EB1 > $08139A51 TFPIMAGEBITMAP__READSTREAM, line 1926 of graphics.pp > $0812F004 TBITMAP__LOADFROMSTREAM, line 459 of ./include/bitmap.inc > $0812A920 LOADBITMAPFROMLAZARUSRESOURCE, line 1509 of graphics.pp > $0808DE8A TSPLASHFORM__CREATE, line 94 of splash.pp > $0805BACF main, line 88 of lazarus.pp > > [EMAIL PROTECTED]:~/Programs/laz-9.25$ svn update > At revision 13162. > > I'm using Ubuntu Gutsy on i386. > > Hints? TIA. > > -Bee- > > has Bee.ography at: > http://beeography.wordpress.com > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- Att, Wanderlan Santos dos Anjos (061) 3345-5496; 9133-3804 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] can we have fpc's doc in chm format?
On Thu, 6 Dec 2007, Marco van de Voort wrote: > > > Agree. However, I was finally able to finish this job last night. It > > > took me about 6 hours to re-arrange the index files, manually. For > > > everyone who is interested, fpc docs in chm format can be downloaded at: > > > http://www.esnips.com/doc/04496e39-6105-423d-b571-b0766990b060/fpc-2.2.0-docs > > > > > > (5.8 MB compressed) > > > > Can we provide this file on fpc's doc ftp? > > I tried it, and a bit strange was the fact that when opened from a network > drive, the treeview loaded, but all the content was IE's page not found > page. A known security issue of M$. Go figure... Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] can we have fpc's doc in chm format?
> > Agree. However, I was finally able to finish this job last night. It > > took me about 6 hours to re-arrange the index files, manually. For > > everyone who is interested, fpc docs in chm format can be downloaded at: > > http://www.esnips.com/doc/04496e39-6105-423d-b571-b0766990b060/fpc-2.2.0-docs > > > > (5.8 MB compressed) > > Can we provide this file on fpc's doc ftp? I tried it, and a bit strange was the fact that when opened from a network drive, the treeview loaded, but all the content was IE's page not found page. The same .chm copied to C:\ worked. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal