1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-20 05:12:05 +03:00
juvix/app/Commands/Dev/Core
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
..
Asm Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Compile Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Eval Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
FromConcrete Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Normalize Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Read Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Repl Option --show-args-num (#1946) 2023-03-30 12:23:40 +01:00
Strip Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Asm.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Compile.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Eval.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
FromConcrete.hs Update ci to use ormolu 0.5.3.0 and reformat project (#2313) 2023-08-25 17:37:23 +01:00
Normalize.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Options.hs Direct translation from normalized JuvixCore to VampIR (#2086) 2023-05-19 14:43:45 +02:00
Read.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Repl.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Strip.hs Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00