Ticket #3189 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

Exception in canonicalizePath if path has national symbols

Reported by: Tonal Owned by: simonmar
Priority: normal Milestone: 6.12.1
Component: libraries/directory Version: 6.10.2
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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;.)

Change History

Changed 4 years ago by Tonal

see also #3086 and #2963

Changed 4 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.12.1

Thanks for the report.

Changed 4 years ago by simonmar

  • owner set to simonmar

Changed 4 years ago by simonmar

  • status changed from new to closed
  • resolution set to fixed

Fixed. In directory:

Thu May 28 06:57:06 PDT 2009  Simon Marlow <marlowsd@gmail.com>
  * Fix #3189: use System.Win32.getFullPathName

and Win32:

Thu May 28 06:56:35 PDT 2009  Simon Marlow <marlowsd@gmail.com>
  * add getFullPathName
Note: See TracTickets for help on using tickets.