Bug#871839: haskell-stack: `hGetContents: invalid argument (invalid byte sequence)`

Paul Menzel pm.debian at googlemail.com
Sat Aug 12 07:56:29 UTC 2017


Package: haskell-stack
Version: 1.1.2-8
Severity: normal


Dear Debian folks,


With a non-UTF-8 locale `stack new` fails with the error below.

```
$ locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
$ stack new test yesod-sqlite
Downloading template "yesod-sqlite" to create project "test" in test/ ...
/root/.stack/templates/yesod-sqlite.hsfiles: hGetContents: invalid argument (invalid byte sequence)
```

Probably it’s a similar problem like in shellcheck, which was fixed
there [1].


Thanks,

Paul


[1] https://github.com/koalaman/shellcheck/commit/46fb91b44d2784829a5949e1faeaedaea59e76a8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20170812/886dda66/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list