This repository was archived by the owner on Jan 3, 2024. It is now read-only.
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
Exotic locale leads to text encoding exceptions #24
Open
Description
Trying to use gitrev on Windows displaying an East Asian language results in an I/O exception (taken from the build output of haskell-ide-engine):
ormolu > app\Main.hs:102:11: error:
ormolu > • Exception when trying to run compile-time code:
ormolu > fd:5: hGetContents: invalid argument (invalid byte sequence)
ormolu > Code: gitBranch
ormolu > • In the untyped splice: $gitBranch
ormolu > |
ormolu > 102 | , $gitBranch
ormolu > | ^^^^^^^^^^
ormolu >
... which is worked around by setting LANG=en_US.UTF8
.
(This is weird to me in that, obviously gitrev should not depend on any locale-dependent output of git, should it? And if all git outputs is locale-independent text, then the text should not trigger encoding problems since Windows code page encodings are compatible with ASCII.)
Metadata
Metadata
Assignees
Labels
No labels