-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spago init and then spago build throw hGetContents error #533
Comments
I think this is about the character code. |
I found that turtle's |
Removing the following line fixes this problem in my case. https://github.com/spacchetti/spago/blob/426838670ba9de4593f4c533a6947efb2d8ad4ba/app/Spago.hs#L375 |
I think that almost all commands output to the standard output with the local encoding which is Windows-31J in my case and that fixing UTF-8 is bad. I think that with the standard input, the standard output, and the error output the local character code should be used and that with the file IO UTF-8 should be. |
@kakkun61 sorry for delay in getting back to this and thanks for the detailed report 👏 Yes, I agree that fixing |
I got
spago.exe: fd:5: hGetContents: invalid argument (invalid byte sequence)
when I ran the following commands.The text was updated successfully, but these errors were encountered: