[fpc-devel] XML and encoding problems

2006-04-23 Thread Alexander Todorov
Hello, I am developing an application in Lazarus that is multi platform. It has very strong usage of xml that contains contains cyrillic text (Bulgarian language). All xml feeds are UTF-8 encoding and is converted internaly using iconv (UTF-8 - CP1251 and vice versa) when needed. On Linux this is

Re: [Fwd: Re: [fpc-devel] Magic numbers used in TryEncodeDate]

2006-04-23 Thread Graeme Geldenhuys
Wow! Thanks for that excellent explanation. As I mentioned to a collegue earlier this week. I never knew dates can become such a complex thing! I will use your email to document those functions, otherwise someone else might feel like I did before reading your explanation of the magic numbers.

Re: [Fwd: Re: [fpc-devel] Magic numbers used in TryEncodeDate]

2006-04-23 Thread Graeme Geldenhuys
On 22/04/06, Bram Kuijvenhoven [EMAIL PROTECTED] wrote: IIRC this is commonly solved by differentiating between th Gregorian and Julian Calendar. I.e. the EncodeDate function etc. work with the Gregorian Calendar. Before that date in 1752 people used the Julian Calendar, but we map all

[fpc-devel] $Y raises internal error

2006-04-23 Thread Joao Morais
Hello, I have a D5 project that uses a {$Y+}. Whenever I include this unit (say WithY.pas) into the uses clause of another unit (say Test.pas) *and* my WithY.ppu is updated, fpc raises a: Fatal: Internal Error 200310221 trying to: Add Dependency of 'WithY' to 'AnFPCUnit'. 2.0.2 and currenct

[fpc-devel] Test, please ignore

2006-04-23 Thread Florian Klaempfl
___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] Web Service Toolkit For FPC Lazarus

2006-04-23 Thread Inoussa OUEDRAOGO
Hi. My congratulations to the FPC team and Lazarus team. I'am working on this toolkit, to add Web Service support to FPC and Lazarus. My aim is to merge it with the FCL (LCL). The attached archive contains all the source code and a documentation file ( OpenDocument format, I use OpenOffice 2.0 to

Re: [fpc-devel] Magic numbers used in TryEncodeDate

2006-04-23 Thread Bram Kuijvenhoven
Hi, Here is the explanation I promised: Graeme Geldenhuys wrote: What is the meaning of these magic numbers used in the TryEncodeDate method? I would like to document them for FPC once I know the answer. 146097 1461 153 693900 I saw the constant DateDelta, but that is never used in

Re: [fpc-devel] Magic numbers used in TryEncodeDate

2006-04-23 Thread Bram Kuijvenhoven
Hi, Here is the explanation I promised: Graeme Geldenhuys wrote: What is the meaning of these magic numbers used in the TryEncodeDate method? I would like to document them for FPC once I know the answer. 146097 1461 153 693900 I saw the constant DateDelta, but that is never used in

Re: [Fwd: Re: [fpc-devel] Magic numbers used in TryEncodeDate]

2006-04-23 Thread Bram Kuijvenhoven
Oops, I see that in the posting mess of this thread I replied to the wrong email address -- I sent the below to Graeme's personal email instead of the list. (Note: a few minutes ago I suddenly saw my other messages appear in the list, along with some other messages posted in the past days; in

Re: [Fwd: Re: [fpc-devel] Magic numbers used in TryEncodeDate]

2006-04-23 Thread Marco van de Voort
But I recommend looking these things up somewhere before writing it down in the docs. (i.e. about the precise meaning of the Gregorian vs. the Julian calendar) This is just my IIRC :) There is a very exhaustive calendar faq on the internet. And if you read it, then you will understand that

Re: [fpc-devel] Magic numbers used in TryEncodeDate]

2006-04-23 Thread Graeme Geldenhuys
Not sure if this came through the list before Graeme . -- Forwarded message -- From: Graeme Geldenhuys [EMAIL PROTECTED] Date: 22-Apr-2006 12:31 Subject: Re: [Fwd: Re: [fpc-devel] Magic numbers used in TryEncodeDate] To: FPC developers' list fpc-devel@lists.freepascal.org

Re: [fpc-devel] XML and encoding problems

2006-04-23 Thread Bogusław Brandys
Alexander Todorov wrote: Hello, I am developing an application in Lazarus that is multi platform. It has very strong usage of xml that contains contains cyrillic text (Bulgarian language). All xml feeds are UTF-8 encoding and is converted internaly using iconv (UTF-8 - CP1251 and vice versa)

[fpc-devel] Re: Internal error 20060409

2006-04-23 Thread Francesco Lombardi
The problem is not my change, but a bug in the ARM code generator. The proper workaround for now is to change the longbool parameter to a regular boolean for now in int64.inc (in your local copy). Ok, in this way it works, thanks. I have noticed some other issues too: in some cases seems that