Ticket #658 (new defect)
cabal-install doesn't work with National account name.
| Reported by: | shelarcy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | cabal-install-0.16 |
| Component: | cabal-install tool | Version: | 1.8.0.2 |
| Severity: | normal | Keywords: | UTF-8 |
| Cc: | Difficulty: | unknown | |
| GHC Version: | 6.12.1 | Platform: | Windows |
Description (last modified by shelarcy) (diff)
If Windows user uses national account name, cabal update is fail.
See: http://www.sampou.org/cgi-bin/w3ml.cgi/haskell-jp/msg/545 (in Japanese)
I thought this problem is GHC 6.10.x and older's bug. So, I tested on Haskell Platform 2010.1.0.0 Windows installer RC3's cabal-install (version 0.8.1), and more recently version cabal-install 0.8.2. But this problem occur newer version (with my National account), too.
C:\Documents and Settings\崇裕>cabal update Downloading the latest package list from hackage.haskell.org cabal: invalid argument
And I tried to use cabal install command in package's directory. But cabal install is also fail.
C:\home\working\parsec-3.1.0>cabal install cabal: C:\Documents and Settings\ユ\Application Data\cabal\packages\hackage.haskell.org\00-index.tar: invalid argument
Above error message shows wrong path, but GHC 6.12.1's getTemporaryDirectory, getAppUserDataDirectory and getHomeDirectory show correct path.
Prelude System.Directory> getTemporaryDirectory "C:\\DOCUME~1\\\23815\35029\\LOCALS~1\\Temp\\" Prelude System.Directory> getAppUserDataDirectory "cabal" "C:\\Documents and Settings\\\23815\35029\\Application Data\\cabal" Prelude System.Directory> getHomeDirectory "C:\\Documents and Settings\\\23815\35029"
So, I think cabal's function passes ascii version's API (*A) instead of wide charactor version's API (*W) internally.
I don't know where this problem come from, cabal-install or Cabal or GHC's library. So, I report this bug on Hackage's Bug Tracker.

