<?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>13796</bug_id>
          
          <creation_ts>2011-08-16 19:24:35 +0000</creation_ts>
          <short_desc>[Applet30] \u escaped characters in grammar applets</short_desc>
          <delta_ts>2016-04-27 20:36:52 +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>Grammar Test Applets</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</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="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Michael Dyck">jmdyck</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>mike</cc>
          
          <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>55244</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2011-08-16 19:24:35 +0000</bug_when>
    <thetext>When I parse the expression &apos;\u0045&apos; I see the following:

|START [1:0 - 1:8]
|   QueryList [1:0 - 1:8]
|      Module [1:0 - 1:8]
|         MainModule [1:0 - 1:8]
|            Prolog [1:0 - 0:0]
|            QueryBody [1:0 - 1:8]
|               Expr [1:0 - 1:8]
|                  StringLiteral &apos;E&apos; [2:1 - 1:8]

I expected:

|                  StringLiteral &apos;\u0045&apos; [2:1 - 1:8]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55258</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-08-17 03:29:57 +0000</bug_when>
    <thetext>The conversion of unicode escapes (\uHHHH) is happening in code that JavaCC generates. The odd thing is, we&apos;re explicitly telling JavaCC (via the JAVA_UNICODE_ESCAPE option) to generate that code. We&apos;ve done so since 2005/03/25. It looks like this came about from confusion/conflation with the UNICODE_INPUT option (which controls whether the input stream object reads &quot;Unicode files&quot; or ASCII files).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55303</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-08-17 15:14:15 +0000</bug_when>
    <thetext>Unfortunately, simply disabling the option causes some tests to fail, so this will take some investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57482</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2011-09-28 18:18:19 +0000</bug_when>
    <thetext>This issue came to my attention due to test cases in our QT3 test suite. I&apos;ve reported the bug there as Bug #14328.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125874</commentid>
    <comment_count>4</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-04-15 20:39:32 +0000</bug_when>
    <thetext>*** Bug 29568 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126220</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2016-04-27 20:36:52 +0000</bug_when>
    <thetext>I tried disabling the JAVA_UNICODE_ESCAPE option again today, and (to my surprise) the test-failures mentioned in comment #2 no longer occurred.

I&apos;m surprised because the version of JavaCC I&apos;m using hasn&apos;t changed since I wrote comment #2. However, the versions of Java and Ant that I&apos;m using *have* changed, so perhaps the bug lay somewhere in there.

Anyhow, the applets now deliver the result that Andrew expected originally, so I&apos;m marking this bug resolved-fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>