Hi, Ralph,
You wrote:
> I found a Mac OS X with brew installed and got its gnu-tar.
>
> $ gtar --version
> tar (GNU tar) 1.29
> ...
>
> By default, my locale is like yours.
>
> $ locale
> LANG=
> LC_COLLATE="C"
> LC_CTYPE="C"
> LC_MESSAGES="C"
> LC_MONETARY="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_ALL=
> $ env | egrep '^(LANG|LC_)' | cat -et
> $
>
> These commands, first both GNU, second has Mac's tar do the create, both
> work.
>
> $ (cd / && gtar cf - dev/null) | gzip | gtar tzvf -
> crw-rw-rw- root/wheel 3,2 2016-08-31 18:59 dev/null
Neither command works when LANG is not defined:
m3rgma0371carn - ~ $ (cd / && gnutar cf - dev/null) | gzip | gnutar tzvf -
gnutar: Child died with signal 11
gnutar: Error is not recoverable: exiting now
Does your Mac have libiconv, gettext, and libintl installed and used
by gtar?
By the way, I know that the issue is not gzip, and I do not need a
valid definition of LANG:
m3rgma0371carn - ~ $ (cd / && gnutar cf - dev/null) | xz | gnutar tJvf -
gnutar: Child died with signal 11
gnutar: Error is not recoverable: exiting now
m3rgma0371carn - ~ $ export LANG=" "
m3rgma0371carn - ~ $ (cd / && gnutar cf - dev/null) | xz | gnutar tJvf -
crw-rw-rw- root/wheel 3,2 2016-08-31 15:12 dev/null
Thanks again.--Rob
--
Rob Gross (617) 552-3758
Department of Mathematics http://fmwww.bc.edu/gross/
Boston College [email protected]
Chestnut Hill, MA 02467-3806