<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 18 20:10:05 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/CLJ-1025/CLJ-1025.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[CLJ-1025] Enable support for \x.. escaped characters.</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-1025</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;see: &lt;a href=&quot;https://groups.google.com/d/topic/clojure/Kl3WVtEE3FY/discussion&quot;&gt;https://groups.google.com/d/topic/clojure/Kl3WVtEE3FY/discussion&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;\x.. characters (which are the same as \u00.. characters) are produced by some systems. in particular clojurescript &lt;/p&gt;

&lt;p&gt;Inability to read these characters hinders data interchange&lt;/p&gt;

&lt;p&gt;After a quick look, I believe this capability can be easily introduced by adding a case to this &lt;br/&gt;
&lt;a href=&quot;https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LispReader.java#L445&quot;&gt;https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LispReader.java#L445&lt;/a&gt; function.&lt;br/&gt;
Mirroring &apos;u&apos; case and reading only 2 chars.&lt;/p&gt;
</description>
                <environment>All</environment>
            <key id="15577">CLJ-1025</key>
            <summary>Enable support for \x.. escaped characters.</summary>
                <type id="4" iconUrl="http://dev.clojure.org/jira/images/icons/improvement.gif">Enhancement</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="2">Declined</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="davesann">Dave Sann</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Jul 2012 22:35:59 -0500</created>
                <updated>Fri, 19 Oct 2012 19:59:47 -0500</updated>
                    <resolved>Fri, 19 Oct 2012 13:55:36 -0500</resolved>
                            <version>Release 1.4</version>
                                                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="28992" author="jafingerhut" created="Thu, 19 Jul 2012 11:46:15 -0500"  >&lt;p&gt;Thanks for the patch, Dave.  It is Rich Hickey&apos;s policy only to include code in Clojure written by those who have signed a Contributor Agreement (CA).  See here for more details: &lt;a href=&quot;http://clojure.org/contributing&quot;&gt;http://clojure.org/contributing&lt;/a&gt;  Have you signed one, or were considering it?&lt;/p&gt;</comment>
                    <comment id="28995" author="jafingerhut" created="Thu, 19 Jul 2012 15:57:22 -0500"  >&lt;p&gt;Can someone find some documentation or spec somewhere that defines this \x.. format?&lt;/p&gt;

&lt;p&gt;It is definitely different than the \x{...} syntax that exists in Perl, which permits one to insert an arbitrary Unicode character code point into a string (note: even supplementary ones that don&apos;t fit into a single UTF-16 code unit, as Java&apos;s and Clojure&apos;s \u.... is restricted to).  &lt;a href=&quot;http://perldoc.perl.org/perlunicode.html#Effects-of-Character-Semantics&quot;&gt;http://perldoc.perl.org/perlunicode.html#Effects-of-Character-Semantics&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="29021" author="davesann" created="Sun, 22 Jul 2012 02:19:14 -0500"  >&lt;p&gt;&lt;a href=&quot;http://es5.github.com/x7.html#x7.8.4&quot;&gt;http://es5.github.com/x7.html#x7.8.4&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="29061" author="davesann" created="Tue, 31 Jul 2012 04:35:44 -0500"  >&lt;p&gt;I am happy to sign the CA in principle. Just need to read and understand any implications for me.&lt;/p&gt;</comment>
                    <comment id="29271" author="davesann" created="Mon, 27 Aug 2012 03:31:21 -0500"  >&lt;p&gt;CA will be with you shortly.&lt;/p&gt;</comment>
                    <comment id="29663" author="davesann" created="Tue, 16 Oct 2012 03:11:01 -0500"  >&lt;p&gt;Can this go into 1.5?&lt;/p&gt;
</comment>
                    <comment id="29687" author="cemerick" created="Fri, 19 Oct 2012 08:10:20 -0500"  >&lt;p&gt;I&apos;m hitting this now as well.  But, adding support for JavaScript&apos;s flavour of &lt;tt&gt;\x..&lt;/tt&gt; escapes to the Clojure reader makes no sense to me.  If escapes are to be used, then the &lt;tt&gt;\u....&lt;/tt&gt; format seems preferable (it supersets &lt;tt&gt;\x..&lt;/tt&gt;).&lt;/p&gt;

&lt;p&gt;However, all of the readers in play (Clojure reader, ClojureScript reader, edn) all play nice with Unicode, so there&apos;s no reason to be escaping anything except for &lt;tt&gt;\t&lt;/tt&gt;, &lt;tt&gt;\n&lt;/tt&gt;, and so on.&lt;/p&gt;

&lt;p&gt;It looks like tweaking cljs&apos; string implementations of &lt;tt&gt;IPrintWithWriter&lt;/tt&gt; and &lt;tt&gt;IPrintable&lt;/tt&gt; so that only those characters are escaped would be fairly easy.  Right now, they&apos;re using &lt;tt&gt;goog.string.escape&lt;/tt&gt;, which &quot;encloses a string in double quotes and escapes characters so that the string is a valid JS string&quot;; whatever escaping is appropriate for a &quot;valid JavaScript string&quot; seems irrelevant to what e.g. &lt;tt&gt;pr-str&lt;/tt&gt; should produce.&lt;/p&gt;

&lt;p&gt;I propose closing this ticket and moving the party to CLJS.&lt;/p&gt;</comment>
                    <comment id="29694" author="stu" created="Fri, 19 Oct 2012 13:55:30 -0500"  >&lt;p&gt;Following Chas&apos;s lead and closing this one. \x doesn&apos;t appear in the JSON spec, and a quick search of StackOverflow shows people stumbling over it from a bunch of other language platforms. I think we should root it out of ClojureScript.&lt;/p&gt;</comment>
                    <comment id="29695" author="cemerick" created="Fri, 19 Oct 2012 13:58:22 -0500"  >&lt;p&gt;Great, I&apos;ll open a CLJS ticket with a patch tonight or tomorrow.&lt;/p&gt;</comment>
                    <comment id="29697" author="ivan" created="Fri, 19 Oct 2012 14:39:17 -0500"  >&lt;p&gt;Re: &quot;no reason to be escaping anything except for \t, \n&quot;: sometimes it is difficult or impossible to transmit all of Unicode (e.g. sending non-Character codepoints through XDomainRequest, or sending U+0000/U+FFFE/U+FFFF through many XHR implementations), so it might be nice to have an ASCII-only printing mode.  Probably for another ticket, though.&lt;/p&gt;</comment>
                    <comment id="29719" author="cemerick" created="Fri, 19 Oct 2012 19:59:47 -0500"  >&lt;p&gt;Here&apos;s the new ticket: &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-400&quot;&gt;http://dev.clojure.org/jira/browse/CLJS-400&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;@Ivan: I agree that options in this area would be good.  There are a lot of edge cases where the defaults aren&apos;t right (e.g. I think escaping all nonprintables is a no-brainer for readably-printed strings).&lt;/p&gt;

&lt;p&gt;I suspect planning out such details should probably happen &lt;span class=&quot;error&quot;&gt;&amp;#91;here&amp;#93;&lt;/span&gt;(&lt;a href=&quot;http://dev.clojure.org/pages/viewpage.action?pageId=4063586&quot;&gt;http://dev.clojure.org/pages/viewpage.action?pageId=4063586&lt;/a&gt;) or &lt;span class=&quot;error&quot;&gt;&amp;#91;here&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://github.com/edn-format/edn/issues&quot;&gt;https://github.com/edn-format/edn/issues&lt;/a&gt;).&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11382" name="0001-adding-support-for-x-escape-characters.patch" size="3012" author="davesann" created="Fri, 13 Jul 2012 23:53:35 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Approval</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10008">Not Approved</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10002">Code and Test</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                        </customfields>
    </item>
</channel>
</rss>