<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9291</bug_id>
          
          <creation_ts>2010-03-22 15:40:04 +0000</creation_ts>
          <short_desc>wrong XQueryX tests - double UTF-8 encoding</short_desc>
          <delta_ts>2010-05-07 14:45:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>1.0.2</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://zorba-xquery.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Turcanu">daniel.turcanu</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33749</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Turcanu">daniel.turcanu</who>
    <bug_when>2010-03-22 15:40:04 +0000</bug_when>
    <thetext>The XQueryX tests that contain unicode characters have those characters encoded as UTF-8 twice. That is, one non-ascii character gets encoded on 4 bytes instead of 2.

The failing tests are:
XQueryX/EncodeURIfunc/K-EncodeURIfunc-4
XQueryX/EscapeHTMLURIFunc/K-EscapeHTMLURIFunc-5
XQueryX/Functions/AllStringFunc/AssDisassStringFunc/StringToCodepointFunc/fn-string-to-codepoints1args-4
XQueryX/Functions/AllStringFunc/EscapingFuncs/EncodeURIfunc/fn-encode-for-uri1args-2
XQueryX/Functions/AllStringFunc/EscapingFuncs/EscapeHTMLURIFunc/fn-escape-html-uri1args-2
XQueryX/Functions/AllStringFunc/EscapingFuncs/IRIToURIfunc/fn-iri-to-uri1args-2
XQueryX/StringToCodepointFunc/K-StringToCodepointFunc-12
XQueryX/StringToCodepointFunc/K-StringToCodepointFunc-19
XQueryX/StringToCodepointFunc/K-StringToCodepointFunc-20
XQueryX/StringToCodepointFunc/K-StringToCodepointFunc-21

The testing was performed using Zorba XQuery 1.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33877</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2010-03-24 20:57:42 +0000</bug_when>
    <thetext>Sorry, but I am not seeing the problem that you describe.

I looked at the first test case you listed, K-EncodeURIfunc-4. The XQuery contains encode-for-URI(&quot;~bébé&quot;) ... I see the string literal as bytes 7E 62 C3 A9 62 C3 A9. The XQueryX that is generated is:

              &lt;xqx:functionCallExpr&gt;
                &lt;xqx:functionName&gt;encode-for-uri&lt;/xqx:functionName&gt;
                &lt;xqx:arguments&gt;
                  &lt;xqx:stringConstantExpr&gt;
                    &lt;xqx:value&gt;~b&amp;#233;b&amp;#233;&lt;/xqx:value&gt;
                  &lt;/xqx:stringConstantExpr&gt;
                &lt;/xqx:arguments&gt;
              &lt;/xqx:functionCallExpr&gt;

The two-byte Unicode characters are being replaced by charRefs in the XQueryX that is generated.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35383</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2010-05-03 22:04:12 +0000</bug_when>
    <thetext>Daniel, if I don&apos;t receive any further information from you, then I will have to close this bug report without making any changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35505</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Turcanu">daniel.turcanu</who>
    <bug_when>2010-05-07 14:45:28 +0000</bug_when>
    <thetext>Ok, I just checked them all and they work fine. They must have been fixed in the latest XQTS.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>