Subject: | Tarball cannot be extracted with a non-utf8 locale |
On a FreeBSD 9.2 system with the following locale settings:
$ locale
LANG=
LC_CTYPE="de_DE.ISO8859-1"
LC_COLLATE="de_DE.ISO8859-1"
LC_TIME="de_DE.ISO8859-1"
LC_NUMERIC="de_DE.ISO8859-1"
LC_MONETARY="de_DE.ISO8859-1"
LC_MESSAGES="de_DE.ISO8859-1"
LC_ALL=de_DE.ISO8859-1
It's not possible to extract the distribution without errors:
$ tar tfvz Text-Md2Inao-0.08.tar.gz
...
tar: Pathname in pax header can't be converted to current locale.
-rw-r--r-- 2 gfx staff 383 3 Mr 14:13 Text-Md2Inao-0.08/old_files/\207\212\233\213\234
...
tar: Error exit delayed from previous errors.
Same works with a utf-8 locale:
$ locale
LANG=
LC_CTYPE="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_ALL=de_DE.UTF-8
$ tar tfvz Text-Md2Inao-0.08.tar.gz
...
(no errors)
Regards,
Slaven