Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Marco van de Voort
Dani?l Mantione [EMAIL PROTECTED] wrote: In other words, you still need to duplicate an awfull lot of code. That is the same for 8bit and widestring. No, that is not true. There would be two rtls based on the same code. Can you give some examples, what parts of the RTL should

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Mattias Gaertner
On Thu, 17 Nov 2005 10:27:08 +0100 (CET) [EMAIL PROTECTED] (Marco van de Voort) wrote: Dani?l Mantione [EMAIL PROTECTED] wrote: In other words, you still need to duplicate an awfull lot of code. That is the same for 8bit and widestring. No, that is not true. There would

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Daniël Mantione
Op Thu, 17 Nov 2005, schreef Mattias Gaertner: On Thu, 17 Nov 2005 10:27:08 +0100 (CET) [EMAIL PROTECTED] (Marco van de Voort) wrote: Dani?l Mantione [EMAIL PROTECTED] wrote: In other words, you still need to duplicate an awfull lot of code. That is the same for 8bit

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Daniël Mantione
Op Thu, 17 Nov 2005, schreef Daniël Mantione: E.g. accessing mysql is now done with pchar(ansistring) And they should be replaced by what? Pchar(Tnativestring(widestring_variable)); Apparently I got too little sleep or something tonight :) It would be this:

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Florian Klaempfl
Daniël Mantione wrote: Op Thu, 17 Nov 2005, schreef Daniël Mantione: E.g. accessing mysql is now done with pchar(ansistring) And they should be replaced by what? Pchar(Tnativestring(widestring_variable)); Apparently I got too little sleep or something tonight :) It would be this:

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Marco van de Voort
[EMAIL PROTECTED] (Marco van de Voort) wrote: Dani?l Mantione [EMAIL PROTECTED] wrote: In other words, you still need to duplicate an awfull lot of code. That is the same for 8bit and widestring. No, that is not true. There would be two rtls based on the same

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Daniël Mantione
Op Thu, 17 Nov 2005, schreef Florian Klaempfl: This makes no sense. If such a thing is done, the encoding of the actually used mysql db must be taken into care. Nothing is fun with charsets... The above just demonstrates the idea. File system encoding would be another of those wild west

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Mattias Gaertner
On Thu, 17 Nov 2005 11:04:01 +0100 (CET) [EMAIL PROTECTED] (Marco van de Voort) wrote: [EMAIL PROTECTED] (Marco van de Voort) wrote: Dani?l Mantione [EMAIL PROTECTED] wrote: In other words, you still need to duplicate an awfull lot of code. That is the same

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Dr. Karl-Michael Schindler
Hi Following this discussion, I want to throw in my 2 cents as well: On a real long term (like 5 or 10 years from now), the solution should be as clean as possible with as little awkward parts because of backward compatibility. This favors of a more separate solution with a compatibility

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Yury Sidorov
From: Marco van de Voort [EMAIL PROTECTED] [EMAIL PROTECTED] (Marco van de Voort) wrote: Dani?l Mantione [EMAIL PROTECTED] wrote: In other words, you still need to duplicate an awfull lot of code. That is the same for 8bit and widestring. No, that is not true. There

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Mattias Gaertner
On Thu, 17 Nov 2005 11:31:45 +0100 Dr. Karl-Michael Schindler [EMAIL PROTECTED] wrote: Hi Following this discussion, I want to throw in my 2 cents as well: On a real long term (like 5 or 10 years from now), the solution should be as clean as possible with as little awkward parts because

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Daniël Mantione
Op Thu, 17 Nov 2005, schreef Mattias Gaertner: On Thu, 17 Nov 2005 11:31:45 +0100 Dr. Karl-Michael Schindler [EMAIL PROTECTED] wrote: Hi Following this discussion, I want to throw in my 2 cents as well: On a real long term (like 5 or 10 years from now), the solution should be

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Yury Sidorov
From: Marco van de Voort [EMAIL PROTECTED] Unicode RTL is needed for people who want to develop unicode applications from the beginning. In such case the developer will be aware of unicode and will write correct code. All correct, BUT 1) it is not Unicode RTL but Unicode FPC/Lazarus. 2) it

[fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Alexander Todorov
Hi folks, can you tell if there is a good crypto class for FPC / Lazarus ? What do you use for crypting your stuff ? Any opinions are welcome. TIA. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Daniël Mantione
Op Thu, 17 Nov 2005, schreef Alexander Todorov: Hi folks, can you tell if there is a good crypto class for FPC / Lazarus ? What do you use for crypting your stuff ? Any opinions are welcome. There exist many Pascal implementations of cryptographic algorithms, but I am not aware of a

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Daniël Mantione
Op Thu, 17 Nov 2005, schreef Yury Sidorov: I agree. There is no need to make existing RTL APIs unicode aware, because there will be no compatibility with existing apps in any case. So how about to add alternative unicode versions of RTL APIs via overloading or via adding some suffix (eg.

Re: [fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Christian Iversen
On Thursday 17 November 2005 13:18, Alexander Todorov wrote: Hi folks, can you tell if there is a good crypto class for FPC / Lazarus ? What do you use for crypting your stuff ? Any opinions are welcome. I'd go for openssl. I know we have to implement crypto support at some point in

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Felipe Monteiro de Carvalho
On 11/17/05, Mattias Gaertner [EMAIL PROTECTED] wrote: Speaking for lazarus: we want to support the whole unicode and UTF8 is the easiest to achieve that. I particulary like this solution. * It doesn´t break existing code * It makes it easy to make a program unicode. Just change the encoding

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Felipe Monteiro de Carvalho
On 11/17/05, Daniël Mantione [EMAIL PROTECTED] wrote: IMHO the hope is that if there is a Tnativestring, people will start to design their libraries using Tnativestring, which will result in that those libraries can be compiled for 8 of 16 bit strings. This does not fix everything. Some RTL

Re: [fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Christian Iversen
On Thursday 17 November 2005 14:04, Paul Davidson wrote: Did some work getting SSL working for FPC. Attached is unit that exposes most of the functions required. Tested with Darwin and Linux. Thank you! That's a great starting point. I'll look at it when we are implementing crypto :) --

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Yury Sidorov
- Original Message - From: Felipe Monteiro de Carvalho [EMAIL PROTECTED] On 11/17/05, Mattias Gaertner [EMAIL PROTECTED] wrote: Speaking for lazarus: we want to support the whole unicode and UTF8 is the easiest to achieve that. I particulary like this solution. * It doesn´t

Re: [fpc-devel] Unicode RTL

2005-11-17 Thread Daniël Mantione
Op Thu, 17 Nov 2005, schreef Felipe Monteiro de Carvalho: On 11/17/05, Daniël Mantione [EMAIL PROTECTED] wrote: IMHO the hope is that if there is a Tnativestring, people will start to design their libraries using Tnativestring, which will result in that those libraries can be compiled

Re: [fpc-devel] MySQL v4.0 v4.1 and v5.0

2005-11-17 Thread Vincent Snijders
Joost van der Sluis wrote: Hi all, atm I have a nearly finished mysql.inc file that can be used with MySQL v4.0 v4.1 and v5.0. Loaded dynamically and static. It uses several defines to set the right MySQL version and to turn the dynamically linking on or off. Create 6 different units in

Re: [fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Luiz Americo Pereira Camara
Em Qui, 2005-11-17 às 14:18 +0200, Alexander Todorov escreveu: Hi folks, can you tell if there is a good crypto class for FPC / Lazarus ? What do you use for crypting your stuff ? Any opinions are welcome. Take a look at http://sourceforge.net/projects/tplockbox Luiz

Re: [fpc-devel] MySQL v4.0 v4.1 and v5.0

2005-11-17 Thread Michael Van Canneyt
On Thu, 17 Nov 2005, Vincent Snijders wrote: Joost van der Sluis wrote: Hi all, atm I have a nearly finished mysql.inc file that can be used with MySQL v4.0 v4.1 and v5.0. Loaded dynamically and static. It uses several defines to set the right MySQL version and to turn the

Re: [fpc-devel] MySQL v4.0 v4.1 and v5.0

2005-11-17 Thread Jesus Reyes
--- Vincent Snijders [EMAIL PROTECTED] escribió: Joost van der Sluis wrote: Hi all, atm I have a nearly finished mysql.inc file that can be used with MySQL v4.0 v4.1 and v5.0. Loaded dynamically and static. It uses several defines to set the right MySQL version and to turn the

Re: [fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Florian Klaempfl
Paul Davidson wrote: Did some work getting SSL working for FPC. Attached is unit that exposes most of the functions required. Tested with Darwin and Linux. What about putting it in packages/extra? OpenSSL is quite common. Hope this helps On Nov 17, 2005, at 7:57, Christian

Re: [fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Paul Davidson
Will alter the unit, and submit it tomorrow :) Thanks On Nov 17, 2005, at 16:06, Florian Klaempfl wrote: Paul Davidson wrote: Did some work getting SSL working for FPC. Attached is unit that exposes most of the functions required. Tested with Darwin and Linux. What about putting it in

RE: [fpc-devel] Unicode RTL

2005-11-17 Thread peter green
Who knows the future? Maybe in 10 years 16bit non multi 'byte' encoding is sufficient for all remaining languages. Or maybe 32bit encodings will become the default. the unix and web worlds are going utf-8 the ms and java worlds are going utf-16 both are variable width

Re: [fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Michael Van Canneyt
On Thu, 17 Nov 2005, Florian Klaempfl wrote: Paul Davidson wrote: Did some work getting SSL working for FPC. Attached is unit that exposes most of the functions required. Tested with Darwin and Linux. What about putting it in packages/extra? OpenSSL is quite common. I was thinking