Skip to content

Exception in canonicalizePath if path has national symbols

Environment: Windows Vista Home Ru + sp1 ghc 6.10.2

Code for reproduced (file tst2.hs):

import System.Directory

main = do
  cwd <- canonicalizePath "."
  putStrLn cwd
  setCurrentDirectory cwd

Console session:

C:\Lang\test\haskell\Тест>ghc --make tst2.hs
[1 of 1] Compiling Main             ( tst2.hs, tst2.o )
Linking tst2.exe ...

C:\Lang\test\haskell\Тест>tst2.exe
C:\Lang\test\haskell\╥хёЄ
tst2.exe: SetCurrentDirectory: does not exist (5 C405BAO =09B8 C:070==K9 D09;.)
Trac metadata
Trac field Value
Version 6.10.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/directory
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information