<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed Jun 19 20:20:29 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/CLJS-133/CLJS-133.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>[CLJS-133] reader/read-string produces malformed keywords in IE9</title>
                <link>http://dev.clojure.org/jira/browse/CLJS-133</link>
                <project id="10040" key="CLJS">ClojureScript</project>
                        <description>&lt;p&gt;the following call: (reader/read-string &quot;{:status :ok}&quot;) produces {&quot;\uFFFD&apos;status&quot; &quot;\uFFFD&apos;ok&quot;} which differs from expected {:status :ok}&lt;br/&gt;
the server inserts proper content-type (utf-8) header for all javascript files&lt;/p&gt;

&lt;p&gt;the problem disappears if unicode special characters are manually replaced with their escaped equivalents (&quot;\uFDD0&quot;) in cljs.core.keyword function in the compiled core.js file&lt;br/&gt;
it doesn&apos;t disappear when call to the str_STAR_ function is replaced to the concatenation operators, which suggest that the function works correctly and adds some mystery to the problem&lt;/p&gt;

&lt;p&gt;currently I have no possibility to reproduce the problem on other system, so I&apos;m not certain in all of the aspects&lt;/p&gt;</description>
                <environment>Windows 7 x86, MSIE 9, Jetty</environment>
            <key id="15131">CLJS-133</key>
            <summary>reader/read-string produces malformed keywords in IE9</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="gchristnsn">g. christensen</reporter>
                        <labels>
                        <label>reader</label>
                    </labels>
                <created>Fri, 20 Jan 2012 20:17:19 -0600</created>
                <updated>Sat, 25 Feb 2012 10:25:29 -0600</updated>
                    <resolved>Sat, 25 Feb 2012 10:25:29 -0600</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="27611" author="dnolen" created="Tue, 24 Jan 2012 13:07:37 -0600"  >&lt;p&gt;Keywords in ClojureScript are just JavaScript strings. If you mean that you&apos;re seeing this on the client, that is expected, are you saying that you&apos;re seeing this in the ClojureScript REPL?&lt;/p&gt;</comment>
                    <comment id="27621" author="gchristnsn" created="Thu, 26 Jan 2012 10:46:37 -0600"  >&lt;p&gt;Yes, I know about the internal keyword representation, the result {&quot;\uFFFD&apos;status&quot; &quot;\uFFFD&apos;ok&quot;} is taken from (pr-str (reader/read-string &quot;{:status :ok}&quot;)) put in the `alert&apos; call, in other browsers it returns {:status :ok}, but in IE it returns the string above. Comparison of such keywords with hardcoded keywords returns nil, so most likely they are not interpreted as keywords (as you may notice, the special character code in malformed keyword differs from the character hardcoded in the clojurescript code of the `keyword&apos; function (\uFDD0 vs \uFFFD). &lt;br/&gt;
It&apos;s strange because it works perfectly in other browsers, and it&apos;s like that it&apos;s a some sort of endianness problem or something, but I don&apos;t know so much about IE internals and can&apos;t judje on this matter.&lt;br/&gt;
I have tried to reproduce the problem on other machine with IE 9.0.8112.16421 64bit update 9.0.3 and it&apos;s still there.&lt;/p&gt;
</comment>
                    <comment id="27623" author="gchristnsn" created="Fri, 27 Jan 2012 01:43:59 -0600"  >&lt;p&gt;I just have read some of unicode specifications and found: &quot;U+FFFD &#65533; replacement character used to replace an unknown or unprintable character&quot;, so it probably necessary to find point where the noncharacter replaced with this character, or may be the raw nonescaped noncharacter is replaced internally by \uFFFD and there is no distinction between keywords and other symbols in IE, obtained through read-string (it may process files correctly but replace noncharacters in constructed strings).&lt;/p&gt;</comment>
                    <comment id="27650" author="dnolen" created="Fri, 3 Feb 2012 19:17:33 -0600"  >&lt;p&gt;Having people looking into the IE issues is fantastic - this is similar to another IE9 reader issue, do you have an approach that you think will solve the problem? Thanks.&lt;/p&gt;</comment>
                    <comment id="27651" author="gchristnsn" created="Sat, 4 Feb 2012 10:14:28 -0600"  >&lt;p&gt;The only thing I can think up is to place \uFDD0 and \uFDD1 escaped literals instead of raw characters in compiled JavaScript output or some compiler hack which will place the escaped literals in `keyword&apos; and `symbol&apos; construction functions.&lt;/p&gt;</comment>
                    <comment id="27671" author="dnolen" created="Sun, 5 Feb 2012 12:18:03 -0600"  >&lt;p&gt;And you&apos;re sure that you&apos;re setting the utf-8 meta tag in your HTML document?&lt;/p&gt;</comment>
                    <comment id="27776" author="dnolen" created="Mon, 20 Feb 2012 10:50:18 -0600"  >&lt;p&gt;Same as &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-139&quot; title=&quot;Internet Explorer treats \uFDD0 up to \uFDEF as equal so some keyword and symbol related things do not work&quot;&gt;&lt;del&gt;CLJS-139&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="27799" author="dnolen" created="Wed, 22 Feb 2012 08:53:20 -0600"  >&lt;p&gt;This ticket is different from &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-139&quot; title=&quot;Internet Explorer treats \uFDD0 up to \uFDEF as equal so some keyword and symbol related things do not work&quot;&gt;&lt;del&gt;CLJS-139&lt;/del&gt;&lt;/a&gt;, this is only about the reader.&lt;/p&gt;</comment>
                    <comment id="27803" author="tscheibl" created="Wed, 22 Feb 2012 11:09:14 -0600"  >&lt;p&gt;applying &lt;a href=&quot;http://dev.clojure.org/jira/secure/attachment/10939/cljs-133_fix.patch&quot;&gt;http://dev.clojure.org/jira/secure/attachment/10939/cljs-133_fix.patch&lt;/a&gt; to the current HEAD makes read-string work as expected. This is because David&apos;s patch for cljs-139 (&lt;a href=&quot;http://dev.clojure.org/jira/secure/attachment/10913/139_fix_unicode_emit.patch&quot;&gt;http://dev.clojure.org/jira/secure/attachment/10913/139_fix_unicode_emit.patch&lt;/a&gt;) does not address the &quot;emit-constant&quot; multimethod for String (only Character, clojure.lang.Keyword and clojure.lang.Symbol). Will will have to do the same replacement for String (each character) as David did for Character (maybe by utilizing clojure.string.replace) to make the 2  functions I patched in core.cljs work in the previous unpatched state (I hope someone can understand my gibberish &lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;!!! deleted referenced patch because it is now obsolete !!!&lt;/p&gt;</comment>
                    <comment id="27815" author="tscheibl" created="Thu, 23 Feb 2012 08:33:27 -0600"  >&lt;p&gt;I have attached a patch to &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-139&quot;&gt;CLJS-139&lt;/a&gt; which fixes this related issue.&lt;/p&gt;</comment>
                    <comment id="27821" author="tscheibl" created="Thu, 23 Feb 2012 12:52:45 -0600"  >&lt;p&gt;I have just attached a &lt;a href=&quot;http://dev.clojure.org/jira/secure/attachment/10949/general-escaping-emit-constant.patch&quot;&gt;general non-ascii escape patch&lt;/a&gt; to &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-139&quot;&gt;CLJS-139&lt;/a&gt; which obsoletes my &lt;a href=&quot;http://dev.clojure.org/jira/secure/attachment/10945/cljs-139%2B133_symbol%2Bkeyword-fix.patch&quot;&gt;previous one&lt;/a&gt;!&lt;/p&gt;</comment>
                    <comment id="27870" author="dnolen" created="Sat, 25 Feb 2012 10:25:29 -0600"  >&lt;p&gt;Fixed, &lt;a href=&quot;https://github.com/clojure/clojurescript/commit/965dc505229652558adcb526ecb5a9f91ce31ce2&quot;&gt;https://github.com/clojure/clojurescript/commit/965dc505229652558adcb526ecb5a9f91ce31ce2&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>