[GHC] #15021: ghc-pkg list crashes on Windows when unicode character is in the path

GHC ghc-devs at haskell.org
Thu May 3 23:47:15 UTC 2018


#15021: ghc-pkg list crashes on Windows when unicode character is in the path
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.6.1
       Component:  ghc-pkg           |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
 Type of failure:  GHC doesn't work  |  Unknown/Multiple
  at all                             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10762, #15096    |  Differential Rev(s):  Phab:D4642
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by lehins):

 @bgamari, I was thinking it would be appropriate to simply change the code
 page of the console together with encoding on `stdout` handle, like I did
 in the example above, but doing a bit more research on this issue lead me
 to the conclusion that it would not be a valid way to go about it.
 Mutating global console state that can affect other processes is just not
 cool.

 I would like to say that your approach is the correct way to deal with
 this issue at the moment as it allows for ghc-pkg to function without
 errors, so I think you can disregard my previous comment.

 At the same time, while trying to figure this issue out I realized there
 is a bigger problem at hand and it is directly related to this ticket, but
 considering that it has much bigger impact and the solution would affect
 all Windows users I opened a separate ticket for it: #15118

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15021#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list