On 1/22/08, <b class="gmail_sendername">Ian Lynagh</b> &lt;<a href="mailto:igloo@earth.li">igloo@earth.li</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Jan 22, 2008 at 03:16:15PM +0000, Magnus Therning wrote:<br>&gt; On 1/22/08, Duncan Coutts &lt;<a href="mailto:duncan.coutts@worc.ox.ac.uk">duncan.coutts@worc.ox.ac.uk</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Tue, 2008-01-22 at 09:29 +0000, Magnus Therning wrote:
<br>&gt; &gt; &gt; I vaguely remember that in GHC 6.6 code like this<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; length $ map ord &quot;a string&quot;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; being able able to generate a different answer than
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; length &quot;a string&quot;<br>&gt; &gt;<br>&gt; &gt; That seems unlikely.<br>&gt;<br>&gt;<br>&gt; Unlikely yes, yet I get the following in GHCi (ghc 6.6.1, the version<br>&gt; currently in Debian Sid):
<br>&gt;<br>&gt; &gt; map ord &quot;a&quot;<br>&gt; [97]<br>&gt; &gt; map ord &quot;ö&quot;<br>&gt; [195,182]<br><br>In 6.6.1:<br><br>Prelude Data.Char&gt; map ord &quot;ö&quot;<br>[195,182]<br>Prelude Data.Char&gt; length &quot;ö&quot;
<br>2<br><br>there are actually 2 bytes there, but your terminal is showing them as<br>one character.</blockquote><div><br>Yes, of course, stupid me.&nbsp; But it is still the UTF-8 representation of &quot;ö&quot;, not Latin-1, and this brings me back to my original question, is this an intentional change in 
6.8?<br><br>&gt; map ord &quot;ö&quot;<br>[246]<br>&gt; map ord &quot;åɓz𝐀&quot;<br>[229,595,65370,119808]<br><br>6.8 produces Unicode code points rather then a particular encoding.<br><br>/M</div></div>