Skip to content

Error diagnostic crashes on Windows #1

@plaidfinch

Description

@plaidfinch

Via /u/Tarmen, we have a bug report posted on Reddit. The relevant piece seems to be:

...on windows the error reporting breaks with

*** Failed! Falsifiable (after 15 tests and 6 shrinks):
┌──────────────┐   ┌─────────────────────┐
│ Inputs       ├───┤ Demand on result    │
├──────────────┤   ├─────────────────────┤
│ StrictCheckTest.EXE: <stdout>: commitBuffer: invalid argument (invalid character)

I suspect this is due to issues with Unicode text handling. The crash occurs right before StrictCheck would ordinarily print the Unicode bullet character (U+2022).

A search of bug reports seems to indicate this is a locale issue, in particular this StackOverflow answer says that this issue might be resolved by runningsetLocaleEncoding utf8 before printing text. It references the documentation for GHC.IO.Encoding, as noted in part of the Hakyll FAQ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions