Hi,
        I understand what you are saying now. I would like to take a look 
and see if there is any way we could optimise this (perhaps by pushing 
into the transcode??). I am very busy this week but will try to get to it. 
You have any ideas for this?

Gareth

On Tue, 14 Oct 2003, Sweeney, Jeff wrote:

> We read the spec the same way you do. The problem occurs when using Xerces-C in a 
> locale where the decimal delimiter is ',', a swedish locale for example. The code 
> that validates the double and float types uses a locale-sensitive C function, 
> strtod, which expects a ',' decimal delimiter in the context of a swedish locale. It 
> finds a '.' decimal delimiter and throws an exception even though the '.' delimiter 
> is what is required by the schema spec.
> 
> >-----Original Message-----
> >From: Gareth Reakes [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, October 14, 2003 11:22 AM
> >To: [EMAIL PROTECTED]
> >Subject: Re: Validating schema double and float types
> >
> >
> >Hi,
> >     I have taken a quick look at the spec and it seems to 
> >me you can 
> >only have "."
> >
> >decimal has a lexical representation consisting of a finite-length 
> >sequence of decimal digits (#x30-#x39) separated by a period 
> >as a decimal 
> >indicator.
> >
> >
> >Is there somewhere in the spec that says you can use ","? Or am I 
> >misunderstanding your request?
> >
> >Gareth
> >
> >
> >
> >On Fri, 10 Oct 2003, Sweeney, Jeff wrote:
> >
> >> The checkBoundary methods of XMLDouble and XMLFloat use the
> >> locale-sensitive C function strtod to validate these schema primitive
> >> data types. This causes an incorrect exception in locales such as
> >> Swedish that use a comma decimal delimiter since the decimal 
> >delimiter
> >> for the schema double and float types is defined by the 
> >standard to be
> >> a period.
> >> 
> >> I submitted a bug and a proposed patch for this. The bug number is
> >> 22821. I would really appreciate it if a committer could find time to
> >> take a look at it.
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> 
> >> 
> >> 
> >
> >-- 
> >Gareth Reakes, Head of Product Development  +44-1865-203192
> >DecisionSoft Limited                        http://www.decisionsoft.com
> >XML Development and Services
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to