<!-- 
RSS generated by JIRA (4.4#649-r158309) at Fri May 24 09:11:39 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-945/CLJ-945.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-945] clojure.string/capitalize can give wrong result if first char is supplementary</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-945</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;When the first unicode code point of a string is supplementary (i.e. requires two 16-bit Java chars to represent in UTF-16), and that first code point is changed by converting it to upper case, clojure.string/capitalize gives the wrong answer.&lt;/p&gt;</description>
                <environment>all</environment>
            <key id="15262">CLJ-945</key>
            <summary>clojure.string/capitalize can give wrong result if first char is supplementary</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="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="jafingerhut">Andy Fingerhut</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Mar 2012 11:33:02 -0600</created>
                <updated>Fri, 1 Mar 2013 09:43:19 -0600</updated>
                    <resolved>Fri, 1 Mar 2013 09:43:19 -0600</resolved>
                            <version>Release 1.2</version>
                <version>Release 1.3</version>
                <version>Release 1.4</version>
                                <fixVersion>Release 1.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="29004" author="richhickey" created="Fri, 20 Jul 2012 07:43:37 -0500"  >&lt;p&gt;Isn&apos;t this a Java bug?&lt;/p&gt;</comment>
                    <comment id="29006" author="jafingerhut" created="Fri, 20 Jul 2012 12:36:53 -0500"  >&lt;p&gt;If using UTF-16 to encode Unicode strings, and making every UTF-16 code unit (i.e. Java char) individually indexable as a separate entity in strings, is such a bad design choice that you consider it a bug, then yes, this is a Java bug (and a bug in all the other systems that use UTF-16 in this way).&lt;/p&gt;

&lt;p&gt;clojure.string/capitalize isn&apos;t using some Java capitalization method that has a bug, though.  By calling (.toUpperCase (subs s 0 1)) it is not giving enough information to .toUpperCase for &lt;em&gt;any&lt;/em&gt; implementation, Java or otherwise, to do the job correctly.  It is analogous to calling toupper on the least significant 4 bits of the ASCII encoding of a letter and expecting it to return the correct answer.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10978" name="capitalize-for-supplementary-chars-patch.txt" size="1586" author="jafingerhut" created="Mon, 5 Mar 2012 11:33:02 -0600" />
                </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>