Skip to content

stack sdist does not handle filenames with non-ASCII characters #2549

@snoyberg

Description

@snoyberg

Steps to reproduce

  1. git clone https://github.com/snoyberg/yaml
  2. cd yaml
  3. git checkout yaml/0.8.18.2
  4. stack sdist
  5. Unpack the tarball printed to standard out, e.g. tar xfv .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/yaml-0.8.18.3.tar.gz

Expected

All files unpack correctly.

Actual

I get the following error from tar due to an incorrectly generated tarball:

yaml-0.8.18.3/test/resources/accent?/foo.yaml: Can't create 'yaml-0.8.18.3/test/resources/accent?/foo.yaml'
tar: Error exit delayed from previous errors.

Stack version

$ stack --version
Version 1.1.2, Git revision cebe10e845fed4420b6224d97dcabf20477bbd4b (3646 commits) x86_64 hpack-0.14.0

Method of installation

  • Executable distributed with the Haskell Platform Minimal (no joke)

Related to: snoyberg/yaml#92

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions