<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed Jun 19 16:52: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/CONTRIB-30/CONTRIB-30.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>[CONTRIB-30] append-spit should only write out an encoding marker once</title>
                <link>http://dev.clojure.org/jira/browse/CONTRIB-30</link>
                <project id="10012" key="CONTRIB">Clojure-Contrib</project>
                        <description>&lt;p&gt;In clojure.contrib.duck-streams append-spit writes out encoding&lt;br/&gt;
markers (for UnicodeLittle for example this is a FEFF in hex)&lt;br/&gt;
each time it appends to a file. This should happen only when&lt;br/&gt;
the file is initially created.&lt;/p&gt;

&lt;p&gt;Test case for reproducing this behaviour:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(use &apos;clojure.contrib.duck-streams)

(binding [*&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;-encoding* &lt;span class=&quot;code-quote&quot;&gt;&quot;UnicodeLittle&quot;&lt;/span&gt;]
  (append-spit &lt;span class=&quot;code-quote&quot;&gt;&quot;/foo.txt&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;Line 1\n&quot;&lt;/span&gt;))
(binding [*&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;-encoding* &lt;span class=&quot;code-quote&quot;&gt;&quot;UnicodeLittle&quot;&lt;/span&gt;]
  (append-spit &lt;span class=&quot;code-quote&quot;&gt;&quot;/foo.txt&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;Line 2\n&quot;&lt;/span&gt;))

(slurp &lt;span class=&quot;code-quote&quot;&gt;&quot;c:/foo.txt&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;UnicodeLittle&quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The slurp outputs&lt;br/&gt;
&quot;Line 1\n?Line 2\n&quot;&lt;br/&gt;
The expected output is:&lt;br/&gt;
&quot;Line 1\nLine 2\n&quot;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14190">CONTRIB-30</key>
            <summary>append-spit should only write out an encoding marker once</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                        <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="2">Declined</resolution>
                                <assignee username="stu">Stuart Halloway</assignee>
                                <reporter username="-1">None</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Sep 2009 15:36:00 -0500</created>
                <updated>Tue, 24 Aug 2010 14:28:00 -0500</updated>
                    <resolved>Tue, 24 Aug 2010 14:28:00 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="25607" author="importer" created="Tue, 24 Aug 2010 14:28:00 -0500"  >&lt;p&gt;Converted from &lt;a href=&quot;http://www.assembla.com/spaces/clojure/tickets/30&quot;&gt;http://www.assembla.com/spaces/clojure/tickets/30&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="25608" author="importer" created="Tue, 24 Aug 2010 14:28:00 -0500"  >&lt;p&gt;stuart.sierra said: Updating tickets (#1, #2, #3, #4, #6, #20, #23, #25, #30, #31, #33, #34, #35, #37, #38, #52, #55, #58, #59, #60, #61, #62, #63, #64)&lt;/p&gt;</comment>
                    <comment id="25609" author="importer" created="Tue, 24 Aug 2010 14:28:00 -0500"  >&lt;p&gt;stu said: I am not sure there is a good answer here. The code above chooses an encoding with an explicit marker, and gets what it asks for. &lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/sad.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;One proposed solution (&lt;a href=&quot;http://github.com/sergey-miryanov/clojure-contrib/commits/bug-30&quot;&gt;http://github.com/sergey-miryanov/clojure-contrib/commits/bug-30&lt;/a&gt;) tries to detect this scenario, and recover via a hard-coded mapping between encodings-with-markers and similar-encodings-without. But I don&apos;t think this can work in general, because the set of possible encodings is open and the Charset API doesn&apos;t provide a mapping between the with-markers and without-markers versions.&lt;/p&gt;

&lt;p&gt;Sorry, and please feel free to reopen this if I am missing an obvious approach.&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>