Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1485

Validation of schema type datetime is locale dependent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • None
    • W2K, Xercex-C 2.6, Default locale German

    Description

      Due to the usage of the locale dependent strtod function in XMLDateTime::parseMiliSecond validation will fail, if

      • locale specifies another character than '.' as 'DecimalPoint'
      • subseconds are present

      Schema datatype mandates that seconds and subseconds are separated by a '.', but strtod might expect a ',' (e.g. German locale) thus returning an error.

      Issue is very much like XERCESX-993 (locale-sensitive function used to validate 'double' type) - fix should be identical.

      Attachments

        Activity

          People

            Unassigned Unassigned
            franksch Frank Schusdziarra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: