stack setup errors when user name has accents

I am new in Haskell, and I am trying to use stack in my "Windows 10" machine to study a little more. Stack installed nicely, but when I run "stack setup" at the command prompt I get the following error: *"Could not parse 'C:\Users\Andr├®\AppData\Roaming\stack\config.yaml':* *InvalidYaml (Just (YamlException "Yaml file not found: C:\\Users\\Andr\233\\AppData\\Roaming\\stack\\config.yaml"))* *See http://docs.haskellstack.org/en/stable/yaml_configuration/."* My name is "André" with an accent, and that's the problem, it can not find config.yaml at my windows user directory. Is there a way to solve this problem, maybe force stack to look into another folder, or something else? My windows command prompt encoding is 850, I do not not know if this info could help. Thanks in advance for any answer, André.

*"Could not parse 'C:\Users\Andr├®\AppData\Roaming\stack\config.yaml':* *InvalidYaml (Just (YamlException "Yaml file not found: C:\\Users\\Andr\233\\AppData\\Roaming\\stack\\config.yaml"))*
*See http://docs.haskellstack.org/en/stable/yaml_configuration/."*
I think the accented letter is displayed as “├®” because GHC renders all Unicode strings using UTF-8, regardless of what the console codepage is. When the UTF-8 encoded letter is shown in codepage 850, it will produce this incorrect display. That being said, the presence of `\233` (the Unicode code point for the accented e) suggests that internally it is correctly storing the accented letter. Since the yaml library uses System.Posix.Internals.c_open, which does claim to handle Unicode properly on Windows, I'm actually confused why it doesn't work. Maybe the problem is not with the yaml library?
participants (2)
-
Andre Fernandes
-
Phil Ruffwind