1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 10:03:22 +03:00
juvix/app/Commands/Dev/Asm
Paul Cadman 32449e1212
Use system locale independent readFile and writeFile APIs from with-utf8 (#2473)
The problem with readFile and writeFile from text
[Data.Text.IO](https://hackage.haskell.org/package/text-2.0.2/docs/Data-Text-IO.html)
is that they use the system locale to determine the text encoding
format.

Our assumption is that all Juvix source files are UTF-8 encoded.

I cannot reproduce the issue with using the old APIs on my machine, it
can be reproduced on Arch linux. I'm not sure how to write a specific
test for this.

* Closes https://github.com/anoma/juvix/issues/2472
2023-10-26 09:13:33 +01:00
..
Compile Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Run Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Validate Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Compile.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Options.hs Translation from JuvixAsm to C (#1619) 2022-12-06 11:33:20 +01:00
Run.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Validate.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00