In fact the encoding problem is more general.<br><br>When I simply do 'readFile "bar/fooé"', then I'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"><<a href="mailto:limestrael@gmail.com">limestrael@gmail.com</a>></span><br>
Date: 2010/8/22<br>Subject: Re: [Haskell-cafe] Perform a research a la Unix 'find'<br>To: Magnus Therning <<a href="mailto:magnus@therning.org">magnus@therning.org</a>><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 'bar' directory, containing a file 'fooé'<br><br>run $ "find bar" :: IO [String]<br>
returns me : ["bar", "bar/foo<b style="color: rgb(255, 0, 0);">\233</b>"]<br><br>and run $ "find bar -name fooé"<br>returns []<br><br>When I provoke an error by running:<br>run $ "find fooé"<br>
it says :<br>find: "foo<b style="color: rgb(255, 0, 0);">\351</b>": No file or directory<br><br>So it is not the same encoding!<br></div>