[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
Fri May 1 08:29:35 UTC 2015


Control: tag -1 + moreinfo

Hi,
On Wed, 14 May 2014 16:59:24 +0200 Robert Bihlmeyer <r.bihlmeyer at arrowecs.at> wrote:
> If the LANG/LC_ environment specifies an UTF-8 locale the following
> program getFileStatus will sometimes fail with ENOENT. In my tests this
> is the case for some (not all) filenames containing invalid UTF-8
> 
> Attached is a simple tar containing files with an all-ASCII name, an
> UTF-8 name (both work) and a GB2312 name exhibiting the problem.

with GHC-7.8 I get

$ ../Test 
dir: .
dir: ..
file: aöö
file: Test: <stdout>: commitBuffer: invalid argument (invalid character)

so it seems that getFileStatus works, but the printing of the filename
does not (which is expected).

Do you agree that this bug is fixed?

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: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20150501/92f1d9f2/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list