[Bug 28515] New: [QT3] format-integer-040, expects error, but is valid format string

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28515

            Bug ID: 28515
           Summary: [QT3] format-integer-040, expects error, but is valid
                    format string
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

This test tests "format-integer(1234, '123١')", and expects "FODF1310" to
be thrown, but the spec says, under 4.6.1:

   A mandatory-digit-sign is a ·character· in Unicode category Nd. All 
   mandatory-digit-signs within the format token must be from the same digit 
   family, where a digit family is a sequence of ten consecutive characters in 
   Unicode category Nd, having digit values 0 through 9. Within the format
token, 
   these digits are interchangeable: a three-digit number may thus be indicated 
   equivalently by 000, 001, or 999.

and later:

    If the primary format token contains at least one Unicode digit then it is 
    taken as a decimal digit pattern, and in this case it must match the
regular 
    expression ^((\p{Nd}|#|[^\p{N}\p{L}])+?)$.

The digit "١", or "١" or "ARABIC-INDIC DIGIT ONE" is part of \p{Nd} and
therefore fits the above regular expression. 

According to the earlier interchangeable rule, I think the correct outcome is
"1234" for this test.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 20 April 2015 05:33:35 UTC