cabal icon indicating copy to clipboard operation
cabal copied to clipboard

Cabal unusable in Windows when username has unicode characters

Open alt-romes opened this issue 1 year ago • 2 comments

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

alt-romes avatar Mar 26 '24 11:03 alt-romes

Do you know whether the config data was already present?

It would be failure to write rathern than read.

It would be lovely if some Win users could replicate this.

ffaf1 avatar Mar 26 '24 11:03 ffaf1

The config file was not present, it was a clean unused install.

alt-romes avatar Mar 26 '24 11:03 alt-romes