Skip to content
  • PHO's avatar
    69b6dcb7
    Don't assume the current locale is *.UTF-8, set the encoding explicitly · 69b6dcb7
    PHO authored and Zubin's avatar Zubin 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.
    
    (cherry picked from commit 52c0fc69)
    69b6dcb7
    Don't assume the current locale is *.UTF-8, set the encoding explicitly
    PHO authored and Zubin's avatar Zubin 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.
    
    (cherry picked from commit 52c0fc69)
Loading