<?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>19572</bug_id>
          
          <creation_ts>2012-10-17 08:59:45 +0000</creation_ts>
          <short_desc>fn-unparsed-text-038</short_desc>
          <delta_ts>2013-01-31 11:48:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="O&apos;Neil Delpratt">oneil</reporter>
          <assigned_to name="Tim Mills">tim</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>76479</commentid>
    <comment_count>0</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-17 08:59:45 +0000</bug_when>
    <thetext>For the test fn-unparsed-text-038 we expect the error code FOUT1190. I think it should in addition expect the code FOUT1200.

In the test case the problem may occur when the processor cannot infer the correct encoding (i.e. FOUT1200) or if the file was incorrectly encoded (i.e. FOUT1190).

The spec states:

&quot;An error is raised [err:FOUT1190] if the value of the $encoding argument is not a valid encoding name, if the ·processor· does not support the specified encoding, if the string representation of the retrieved resource contains octets that cannot be decoded into Unicode ·characters· using the specified encoding, or if the resulting characters are not permitted XML characters.

An error is raised [err:FOUT1200] if $encoding is absent and the ·processor· cannot infer the encoding using external information and the encoding is not UTF-8.&quot;

If the creator of the test agrees I can make the change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76707</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-19 16:32:33 +0000</bug_when>
    <thetext>I partially agree - I&apos;m assuming your processor isn&apos;t using the information in resource/@encoding, which could lead to FOUT1200.

However, I&apos;d rather target the test to hit FOUT1190 alone.

I have added a new file which contains a utf-8 byte order mark at the beginning, but is invalid UTF-8.

Would you agree that this should only trigger FOUT1190?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82366</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-01-30 22:19:16 +0000</bug_when>
    <thetext>Do you have any further comments or would you be happy to close?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82394</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-01-31 10:27:15 +0000</bug_when>
    <thetext>I agree with comment #1 and have no further comments</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82397</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-01-31 11:48:09 +0000</bug_when>
    <thetext>Great.  Closing...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>