In fact the encoding problem is more general.<br><br>When I simply do &#39;readFile &quot;bar/fooé&quot;&#39;, then I&#39;m told:<br>*** Exception: bar/fooé: openFile: does not exist (No such file or directory)<br><br>How am I supposed to read files whose names contains non-ASCII characters?<br>
(I use GHC 6.12.3 under Ubuntu 10.04 32bits)<br><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Yves Parès</b> <span dir="ltr">&lt;<a href="mailto:limestrael@gmail.com">limestrael@gmail.com</a>&gt;</span><br>
Date: 2010/8/22<br>Subject: Re: [Haskell-cafe] Perform a research a la Unix &#39;find&#39;<br>To: Magnus Therning &lt;<a href="mailto:magnus@therning.org">magnus@therning.org</a>&gt;<br>Cc: <a href="mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>
<br><br>I looked at both, and I have encoding issues with both.<br><br>My locale is fr_FR.utf8<br>For instance, with HSH:<br>I have a &#39;bar&#39; directory, containing a file &#39;fooé&#39;<br><br>run $ &quot;find bar&quot; :: IO [String]<br>

returns me : [&quot;bar&quot;, &quot;bar/foo<b style="color: rgb(255, 0, 0);">\233</b>&quot;]<br><br>and run $ &quot;find bar -name fooé&quot;<br>returns []<br><br>When I provoke an error by running:<br>run $ &quot;find fooé&quot;<br>

it says :<br>find: &quot;foo<b style="color: rgb(255, 0, 0);">\351</b>&quot;: No file or directory<br><br>So it is not the same encoding!<br></div>