Skip to content
  • Ben Gamari's avatar
    testsuite: Simplify kernel32 glue logic · cc4710af
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    On Windows the testsuite driver calls kernel32 to set the current
    terminal codepage. The previous implementation of this was significantly
    more complex than necessary, and was wrong in the case of MSYS2, which
    requires that we explicitly load the library using the name of its
    DLL, including its file extension.
    
    Test Plan: Validate on Windows
    
    Reviewers: austin, RyanGlScott, Phyx
    
    Reviewed By: RyanGlScott, Phyx
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2641
    
    GHC Trac Issues: #12661
    cc4710af