[fpc-devel] Language feature request

2009-09-17 Thread Den Jean
Hi, I read something funny on the python ML request ... but the syntax-sugar difference is small enough to make it no big deal, anyway. comp.lang.python's volume has (I'd guess) a 20%-30% component of "suggestions for alleged improvements to the Python language" (in all flavors, most often "cri

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-17 Thread Horacio Jamilis
Dariusz Mazur escribió: This is not problem to have separate executable, only have one source to both GUI. I made program which can work as desktop and as web-based (FCGI or standalone web server) Each form is create dynamical in runtime, source is one, but in compile time: 1 for desktop: clasi

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys escreveu: 2009/9/17 Luiz Americo Pereira Camara : RTLString would not meant to be used in client applications. Would be useful only in functions that interact with system calls like the RTL ones having two benefits: avoiding extra encoding conversions and the need for duplic

Re: [fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 17:52, Lukas Zeller wrote: In the meantime I tested the supersimple test program that reliable crashes on 10.6 also on a 10.5 installation. Now here it behaves correctly (?!) HOWEVER, with the original, big program the problem also shows on 10.5. As I discovered another

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
2009/9/17 Luiz Americo Pereira Camara : > > RTLString would not meant to be used in client applications. Would be useful > only in functions that interact with system calls like the RTL ones having > two benefits: avoiding extra encoding conversions and the need for > duplicated RTL (UTF16 and UTF8

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys escreveu: Luiz Americo Pereira Camara het geskryf: Yes. RTLString would be just an alias to UnicodeString in win32 and UTF8String in unixes Bad news for Michael. :-) We would have to have serious documentation on all the string types supported by FPC - I'm loosing cou

Re: [fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 17:28, Lukas Zeller wrote: Now Snow Leopard 10.6.1, but we have a parallel installation on Leopard 10.5.latest that also shows the problem. Note that on Mac OS X 10.6.x (or rather with Xcode 3.2, which ships with Mac OS X 10.6) there is a known linker bug that messes up

Re: [fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Lukas Zeller
Hi Jonas, A quick followup: In the meantime I tested the supersimple test program that reliable crashes on 10.6 also on a 10.5 installation. Now here it behaves correctly (?!) HOWEVER, with the original, big program the problem also shows on 10.5. As I discovered another side effect (garbled

Re: [fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Lukas Zeller
Hi Jonas, On Sep 17, 2009, at 16:20 , Jonas Maebe wrote: I am using FPC 2.2.4 on Mac OS X and the problem happens there. On which version of Mac OS X? Now Snow Leopard 10.6.1, but we have a parallel installation on Leopard 10.5.latest that also shows the problem. And in fact it was -

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Michael Schnell
I'll try that ASAP :) -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 16:16, Lukas Zeller wrote: Which FPC version are you using? I fixed shared library initialisation/finalisation for Mac OS X and Linux in FPC 2.2.4. I am using FPC 2.2.4 on Mac OS X and the problem happens there. On which version of Mac OS X? And in fact it was - while r

Re: [fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Lukas Zeller
Hello Jonas, thanks for responding so quickly! On Sep 17, 2009, at 11:50 , Jonas Maebe wrote: On 17 Sep 2009, at 11:33, Lukas Zeller wrote: I guess I really need to understand how the FPC runtime expects to be initialized when located in a shared lib, but I couln't find any hint so far in

[fpc-devel] Re: CGI/Command line/GUI all in one

2009-09-17 Thread Gilles MARCOU
Hi, thank you for your very fast answers. Joost, I had an application that worked as GUI (my boss likes GUI), then my colleagues asked me for a command line and my boss asked for a CGI... I resulted in 3 separate projects which is impossible to maintain -I'm not well enough organized. So I wanted

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Vincent Snijders
Felipe Monteiro de Carvalho schreef: On Thu, Sep 17, 2009 at 9:42 AM, Jonas Maebe wrote: It isn't. It is a string type whereby the string encoding is part of the string information (just like the reference count and length already are currently). Ah, that string type. Previous discussions bet

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Felipe Monteiro de Carvalho
On Thu, Sep 17, 2009 at 9:42 AM, Jonas Maebe wrote: > It isn't. It is a string type whereby the string encoding is part of the > string information (just like the reference count and length already are > currently). Ah, that string type. Previous discussions between Lazarus developers concluded t

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-17 Thread Dariusz Mazur
Gilles MARCOU pisze: Hello, I'm trying to build an interface for a program so that it could be used as a command line, a GUI or a CGI. For the CGI, I use powutils 1.7.1, FPC 2.2.0 and Lazarus 0.9.24. I mean that the same executable should be used either as a CGI, a command line or a GUI. Curren

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > >> > > http://www.stack.nl/~marcov/unicode.jpg > > The electronic version is also freely available from the unicode.org > website. I can't remember the direct link, but I do have Unicode v5 > chapters 1-6 here in pdf format, downloaded from unicod

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
Vincent Snijders het geskryf: >> > http://www.stack.nl/~marcov/unicode.jpg The electronic version is also freely available from the unicode.org website. I can't remember the direct link, but I do have Unicode v5 chapters 1-6 here in pdf format, downloaded from unicode.org Regards, - Graeme -

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 13:34, Felipe Monteiro de Carvalho wrote: On Thu, Sep 17, 2009 at 8:11 AM, Jonas Maebe > wrote: Please, not again this discussion. I think we all know what everyone thinks about that, what the pitfalls are and this will eventually be solved by D2009-style unicode string s

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread theo
You can test this also using the TCharacter class http://wiki.lazarus.freepascal.org/Theodp procedure TForm1.Button1Click(Sender: TObject); var a,b,c:String; begin a:= UTF8Encode(WideChar($41)+WideChar($030A)); //Decomposed Å b:= UTF8Encode(WideChar($212B)); //Å Ångström c:= UTF8Encode(WideChar(

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
Michael Schnell het geskryf: > > How am I supposed to input o + " in Open Office in a way that the > program combines them to ö ? Not that this is the right list for OpenOffice support - but I'll make it quick. ;-) I use Dvorak keyboard layout, so it makes such character input a breeze. Alterna

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Michael Schnell
Graeme Geldenhuys wrote: > What I meant was, use OpenOffice to open a document with Unicode text in > it. Make use that some "visual" character and bases on normalized text > and some are bases on non-normalized text (two or more characters > forming one visual character. eg: o + ¨ = ö). How am I

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-17 Thread Joost van der Sluis
On Thu, 2009-09-17 at 11:50 +0200, Gilles MARCOU wrote: > Hello, > > I'm trying to build an interface for a program so that it could be used > as a command line, a GUI or a CGI. For the CGI, I use powutils 1.7.1, > FPC 2.2.0 and Lazarus 0.9.24. I mean that the same executable should be > used eith

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Felipe Monteiro de Carvalho
On Thu, Sep 17, 2009 at 8:11 AM, Jonas Maebe wrote: > Please, not again this discussion. I think we all know what everyone thinks > about that, what the pitfalls are and this will eventually be solved by > D2009-style unicode string support. AFAIK D2009-style solution is just a reference counted

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-17 Thread Graeme Geldenhuys
Gilles MARCOU het geskryf: > I'm trying to build an interface for a program so that it could be used > as a command line, a GUI or a CGI. For the CGI, I use powutils 1.7.1, > FPC 2.2.0 and Lazarus 0.9.24. I mean that the same executable should be > used either as a CGI, a command line or a GUI. I

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
Michael Schnell het geskryf: > > Unfortunately I don't have a language independent version of Open > Office, that would be able to do this for -say- ancient Egypt. What I meant was, use OpenOffice to open a document with Unicode text in it. Make use that some "visual" character and bases on norma

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 13:11, Graeme Geldenhuys wrote: fpGUI Toolkit is in the same boat. Using UTF-8 inside AnsiStrings. And like Lazarus, fpGUI also has various UTF-8 friendly RTL String functions. It works relatively well, as long as the developer knows that he/she must rather use the Unicode

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
Michael Schnell het geskryf: > Marco van de Voort wrote: > >> like Lazarus UTF-8 in >> ansistring. > > That already produced a huge confusion and obviously is a way that can't > decently be followed in the future. fpGUI Toolkit is in the same boat. Using UTF-8 inside AnsiStrings. And like Lazaru

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-17 Thread Michael Schnell
Did you find / define a Widget set that is compatible for a local GUI and a GCI that is supposed to be connected via HTML ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] CGI/Command line/GUI all in one

2009-09-17 Thread Gilles MARCOU
Hello, I'm trying to build an interface for a program so that it could be used as a command line, a GUI or a CGI. For the CGI, I use powutils 1.7.1, FPC 2.2.0 and Lazarus 0.9.24. I mean that the same executable should be used either as a CGI, a command line or a GUI. Currently I have kept separat

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Marco van de Voort
In our previous episode, Michael Schnell said: > Marco van de Voort wrote: > > > > http://www.stack/nl/~marcov/unicode.jpg > > > > Obviously a huge Volume for a huge encoding scheme that really imposes a > huge number of huge problems ;). No, the description is about one-two hundred pages, the

Re: [fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 11:33, Lukas Zeller wrote: I guess I really need to understand how the FPC runtime expects to be initialized when located in a shared lib, but I couln't find any hint so far in the FPC docs nor in the list archives. Which FPC version are you using? I fixed shared library

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Michael Schnell
Marco van de Voort wrote: > like Lazarus UTF-8 in > ansistring. That already produced a huge confusion and obviously is a way that can't decently be followed in the future. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Michael Schnell
Graeme Geldenhuys wrote: > > Open a document with OpenOffice and search for text. Unicode is all about language independent coding. Unfortunately I don't have a language independent version of Open Office, that would be able to do this for -say- ancient Egypt. -Michael

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Michael Schnell
Marco van de Voort wrote: > > http://www.stack/nl/~marcov/unicode.jpg > Obviously a huge Volume for a huge encoding scheme that really imposes a huge number of huge problems ;). -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http:/

[fpc-devel] FPC shared lib called from C shared lib called from C main program crashes

2009-09-17 Thread Lukas Zeller
Hello, I already dug through the archives but found nothing really related to a weird problem I have with a FPC shared lib which is used by a C shared lib which in turn is a plugin to a C main program. The net effect is that the FPC library crashes (apparently when trying to allocate a FP

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > A good place to start: > > > > http://www.stack.nl/~marcov/delphistringtypes.txt > > Good god! 16 different types already! It's worse (and a lot more) than I > thought. :-) Not counting aliases and untyped library level usage like Lazarus UTF-

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
Marco van de Voort het geskryf: > > A good place to start: > > http://www.stack.nl/~marcov/delphistringtypes.txt Good god! 16 different types already! It's worse (and a lot more) than I thought. :-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http:

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > Java is not portable. The VM hides the platform differences. Maybe that came out to strong. I don't want endless discussions about this. Point is, I meant more "Java has a different philosophy wrt portability". __

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > > > Yes. RTLString would be just an alias to UnicodeString in win32 and > > UTF8String in unixes > > Bad news for Michael. :-) We would have to have serious documentation on > all the string types supported by FPC - I'm loosing count! We woul

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
Luiz Americo Pereira Camara het geskryf: > > Yes. RTLString would be just an alias to UnicodeString in win32 and > UTF8String in unixes Bad news for Michael. :-) We would have to have serious documentation on all the string types supported by FPC - I'm loosing count! We would also need a nice b

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Graeme Geldenhuys
Michael Schnell het geskryf: >> Neither that much space nor that much time is required. > > Any pointers regarding a decent estimation ? Open a document with OpenOffice and search for text. It's as simple as that. You are seriously over exaggerating on the GBytes size lookup tables etc... Maybe

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Vincent Snijders
http://www.stack/nl/~marcov/unicode.jpg http://www.stack.nl/~marcov/unicode.jpg ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Marco van de Voort
In our previous episode, Michael Schnell said: [ Charset ISO-8859-1 unsupported, converting... ] > Jonas Maebe wrote: > > > > Neither that much space nor that much time is required. > > Any pointers regarding a decent estimation ? http://www.stack/nl/~marcov/unicode.jpg there is a v5 now though

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 09:55, Michael Schnell wrote: Jonas Maebe wrote: Neither that much space nor that much time is required. Any pointers regarding a decent estimation ? No. As there are billions of possible Unicode "characters" and most of them potentially can be alternately depicted

Re: [fpc-devel] iphone development

2009-09-17 Thread dmitry boyarintsev
> This is an ARM system so it should support Mono. There is a Huge list of > (free and commercial) languages that support MONO, including Object > Pascal: Delphi Prism. Let's see: Individual developers (1 year): * iPhone dev program: 100 USD * Mono touch: 400 USD * Delphi Prism: 500 USD Tota

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Michael Schnell
Jonas Maebe wrote: > > Neither that much space nor that much time is required. Any pointers regarding a decent estimation ? As there are billions of possible Unicode "characters" and most of them potentially can be alternately depicted by one or multiple multi-Unicode surrogates, I don't share

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Jonas Maebe
On 17 Sep 2009, at 09:33, Michael Schnell wrote: Of course I have been supposing that (if possible) the RTL would call a library function. But it makes no difference: If the algorithm to "normalize" the multi-character codes (if this is possible at all) needs a table of several GBytes and C

Re: [fpc-devel] iphone development

2009-09-17 Thread Michael Schnell
ABorka wrote: > I think many > people/companies would happily pay the price to have some nice language > for development. This is an ARM system so it should support Mono. There is a Huge list of (free and commercial) languages that support MONO, including Object Pascal: Delphi Prim. -Michael ___

Re: [fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

2009-09-17 Thread Michael Schnell
Jonas Maebe wrote: > The way to implement stuff like that is to call the appropriate library > functions. It makes no sense to completely re-implement everything in > the RTL. Of course I have been supposing that (if possible) the RTL would call a library function. But it makes no difference: If t