[Pkg-haskell-maintainers] Bug#748125: System.Posix.Directory.readDirStream can return strings that S.P.Files.getFileStatus cannot use

Joachim Breitner nomeata at debian.org
Wed May 14 21:26:05 UTC 2014


Control: tags -1 upstream

Dear Robert,

Thanks for your report.

Am Mittwoch, den 14.05.2014, 17:00 +0200 schrieb Robert Bihlmeyer:
> I don't think running a program with LC_CTYPE=*.UTF-8 means that all
> filenames that it encounters have to be valid UTF-8.

the problem is: What else should they be? The "String" type represents
unicode characters, so using that for a file name requires them to be
decoded somehow.

I guess the solution, which you have found already, for uses where
arbitrary filenames need to work is to use a type that is meant for
that, i.e. ByteString.

So I’m not sure what to do about this bug.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140514/e1da6011/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list