You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone https://github.com/hvr/-.git 無
...
$ cd 無
$ runghc Setup.hs configure
Configuring 無-0...
$ runghc Setup.hs sdist
Distribution quality warnings:
No 'category' field.
No 'description' field.
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for 無-0...
Source tarball created: dist/無-0.tar.gz
$ tar tf dist/無-0.tar.gz
無-0/
無-0/無.cabal
無-0/Setup.hs
無-0/LICENSE
That works as expected; however, when using cabal-install:
$ rm -rf dist/
$ cabal --version
cabal-install version 1.22.2.0
using version 1.22.2.0 of the Cabal library
$ cabal configure
Resolving dependencies...
Configuring 無-0...
$ cabal sdist
Distribution quality warnings:
No 'category' field.
No 'description' field.
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for 無-0...
Source tarball created: dist/無-0.tar.gz
$ tar tf dist/無-0.tar.gz
!-0/
!-0/!.cabal
!-0/Setup.hs
!-0/LICENSE
The resulting tarball has filenames with 無 replaced by ! (fwiw, 無 is UTF8-encoded as 0xe7 0x84 0xa1)
@hvr By the way, what operating system is this on, and what is your default encoding set to? (It should work correctly regardless of these facts, but knowing these may help to track it down.)
Thanks. And there is even some traffic in the tar issue, so let me downgrade priority on our side. Unless a workaround on cabal side is urgent for any users?
Activity
23Skidoo commentedon Apr 27, 2015
Once this is fixed, we should also add a regression test.
ttuegel commentedon Apr 27, 2015
@hvr By the way, what operating system is this on, and what is your default encoding set to? (It should work correctly regardless of these facts, but knowing these may help to track it down.)
hvr commentedon Apr 27, 2015
@ttuegel Ubuntu 15.04 w/
LANG=en_US.UTF-8; I'd expect this issue to be easily reproducible on any Linux distributiontrofi commentedon Sep 3, 2016
Real-world example:
https://github.com/snoyberg/yaml/blob/master/yaml.cabal#L23
cabal sdistpackages it correctly on linux butcabal unpackunpacks it incorrectly:Note how
égot corrupted toé.trofi commentedon Sep 3, 2016
Edward pointed out it's even more complicated: #3758
gbaz commentedon Jul 28, 2022
underlying/related issue in tar haskell/tar#6
Mikolaj commentedon Jul 28, 2022
Thanks. And there is even some traffic in the tar issue, so let me downgrade priority on our side. Unless a workaround on cabal side is urgent for any users?
ulysses4ever commentedon Jan 8, 2025
The tar issue was closed a year ago. I wonder if benefit from that and can close the issue...
ulysses4ever commentedon Jan 8, 2025
I just confirmed that the reproducer in the OP is working now. (God bless reproducers!) Closing optimistically...