Skip to content

Commit

Permalink
Merge pull request #4922 from haskell/cabal-install-2.0-last-minute-f…
Browse files Browse the repository at this point in the history
…ixes

Some minor fixes for the 2.0 branch
  • Loading branch information
23Skidoo committed Dec 2, 2017
2 parents 0395bf1 + 9ac2990 commit 575be7f
Show file tree
Hide file tree
Showing 5 changed files with 361 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Cabal/tests/UnitTests/Distribution/Compat/CreatePipe.hs
Expand Up @@ -9,11 +9,11 @@ tests :: [TestTree]
tests = [testCase "Locale Encoding" case_Locale_Encoding]

case_Locale_Encoding :: Assertion
case_Locale_Encoding = assert $ do
case_Locale_Encoding = do
let str = "\0252"
(r, w) <- createPipe
hSetEncoding w localeEncoding
out <- hGetContents r
hPutStr w str
hClose w
return $! out == str
assertEqual "createPipe should support Unicode roundtripping" str out

0 comments on commit 575be7f

Please sign in to comment.