Skip to content
  • PHO's avatar
    Don't assume the current locale is *.UTF-8, set the encoding explicitly · 52c0fc69
    PHO authored and Marge Bot's avatar Marge Bot committed
    primops.txt contains Unicode characters:
    > LC_ALL=C ./genprimopcode --data-decl < ./primops.txt
    > genprimopcode: <stdin>: hGetContents: invalid argument (cannot decode byte sequence starting from 226)
    
    Hadrian must also avoid using readFile' to read primops.txt because it
    tries to decode the file with a locale-specific encoding.
    52c0fc69