on master help sign in
Remove problematic non-ASCII character (fixes #92)
commit8749ee6f9b927b188ef0734fe93ca589339d9b56 authorMichael Snoyman <michael@snoyman.com> dateFri 2 Sep 2016, 12:17 (10 years ago) parente93fceb
4 files changed+13−3
ChangeLog.md+5 test/Data/YamlSpec.hs+6−1 test/resources/accenté/foo.yaml → test/resources/accent/foo.yaml yaml.cabal+2−2
ChangeLog.md+5
@@ -1,3 +1,8 @@
1+## 0.8.18.4
2+
3+* Remove file with non-ASCII name due to Stack/cabal-install/Hackage
4+ restrictions (see [#92](https://github.com/snoyberg/yaml/issues/92))
5+
16## 0.8.18.2
27
38* Handle non-ASCII filenames correctly on Windows [#91](https://github.com/snoyberg/yaml/pull/91)
test/Data/YamlSpec.hs+6−1
@@ -19,7 +19,7 @@ import Control.Monad
1919import Control.Exception (try, SomeException)
2020import Test.Hspec
2121import Data.Either.Compat
22−import System.Directory (createDirectory)
22+import System.Directory (createDirectory, createDirectoryIfMissing)
2323import Test.Mockery.Directory
2424
2525import qualified Data.Yaml as D
@@ -327,6 +327,11 @@ caseEncodeDecodeNonAsciiFileData = do
327327 D.encodeFile "accenté/bar.yaml" mySample
328328 out1 <- D.decodeFile "accenté/bar.yaml"
329329 out1 @?= Just mySample
330+
331+ createDirectoryIfMissing True "test/resources/accenté/"
332+
333+ readFile "test/resources/accent/foo.yaml" >>=
334+ writeFile "test/resources/accenté/foo.yaml"
330335 out2 <- D.decodeFile "test/resources/accenté/foo.yaml"
331336 out2 @?= Just mySample
332337
test/resources/accenté/foo.yaml → test/resources/accent/foo.yamlrenamed

The content is the same.

yaml.cabal+2−2
@@ -1,8 +1,8 @@
11name: yaml
2−version: 0.8.18.2
2+version: 0.8.18.4
33license: BSD3
44license-file: LICENSE
5−author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
5+author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
66maintainer: Michael Snoyman <michael@snoyman.com>
77synopsis: Support for parsing and rendering YAML documents.
88description: Please see the README.md file.