[Haskell-cafe] unicode filenames advice

Joey Hess joey at kitenet.net
Fri Feb 11 20:44:32 CET 2011


I've been trying to deal with how my haskell program handles unicode
filenames. Been dealing with problems like those described here:

http://hackage.haskell.org/trac/ghc/ticket/3307

Or, simply demonstrated by feeding unicode to getLine >>= readFile

My approach currently is to carefully identify any point where
a FilePath is output, and run it through a filePathToString (which
varies by OS), as suggested in the above bug report.

Is there a less tedious and error-prone way? What is the best approach
to use now, assuming that these issues will be dealt with in some way
in Haskell, eventually?

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110211/e45c1820/attachment.pgp>


More information about the Haskell-Cafe mailing list