-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tar-0.6.2.0 supports Unicode in file names (encoded as UTF-8). Consequently, Stack no longer needs to UTF-8 encode file names. Also adds test of `stack sdist .` with Unicode in file names.
- Loading branch information
Showing
14 changed files
with
107 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
stack.yaml.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import StackTest | ||
|
||
-- | The test fails at runtime on the Windows Server 2022 GitHub-hosted runner | ||
-- only, at the point of outputting a Unicode character, with: | ||
-- | ||
-- <stderr>: commitAndReleaseBuffer: invalid argument (cannot encode character '\1633') | ||
-- | ||
-- That appears to be similar to | ||
-- https://gitlab.haskell.org/ghc/ghc/-/issues/8118, however: (1) the locale is | ||
-- set to C.UTF-8 and the active code page is 65001; and | ||
-- (2) `GHC.IO.Encoding.setLocaleEncoding utf8` has no effect. | ||
-- | ||
-- Until the origin of the problem is identified, we disable the test on | ||
-- Windows. | ||
|
||
main :: IO () | ||
main = unless isWindows $ do | ||
stack ["clean"] | ||
stack ["build", "--dry-run"] | ||
stack ["sdist", "."] |
8 changes: 8 additions & 0 deletions
8
tests/integration/tests/6372-sdist-unicode-test/files/package.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: test١٢٣ | ||
version: 0.1.0.0 | ||
license: BSD-3-Clause | ||
description: Test of Unicode characters in file names | ||
dependencies: | ||
- base < 5 | ||
library: | ||
source-dirs: src |
6 changes: 6 additions & 0 deletions
6
tests/integration/tests/6372-sdist-unicode-test/files/src/Libαβγ.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Libαβγ | ||
( someFunc | ||
) where | ||
|
||
someFunc :: IO () | ||
someFunc = putStrLn "someFunc" |
1 change: 1 addition & 0 deletions
1
tests/integration/tests/6372-sdist-unicode-test/files/stack.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
snapshot: lts-22.7 |
Oops, something went wrong.