haskell / haskell/cabal

Cabal unusable in Windows when username has unicode characters

Open
#9,846 2 comments 0 reactions 0 assignees View on GitHub
platform: windows type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
Cabal becomes unusable in Windows when the username has unicode characters (that is my suspicion), because attempts to read e.g. the global config fail.

**To Reproduce**
```
Daniel João@DESKTOP-PBTBE76 MINGW64 /tmp/tmp.UvhafQVlZ0/ghc
$ cabal --store-dir=$(pwd)/store install alex-3.5.0.0 happy --installdir=$(pwd)/bin
Config file path source is default config file.
Config file not found: C:\Users\Daniel Jo?o\AppData\Roaming\cabal\config
Writing default configuration to C:\Users\Daniel
Jo?o\AppData\Roaming\cabal\config
C:\Users\Daniel Jo?o\AppData\Roaming\cabal\config.tmp: withFile: invalid argument (invalid character)
```

**System information**
- Operating system: Windows Mingw-w64-x86_64
- `cabal`, `ghc` versions: ghc 9.8.2, cabal 3.10.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.