bug on shar (GNU sharutils) 4.15.2
Paulo Ney de Souza <[email protected]> Fri, 26 Nov 2021 14:01:50 -0800
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <CAFVhNZNM0vAtwStQXx1OC8crqY9--_Cju+=nvfi4KxmESDShWw@mail.gmail.com> |
When I do shar -T test.tex > file.shar on the one-liner file, encoded in
UTF-8:
\chapter{S=C3=A9ries}
everything works fine, and when executing sh file.shar (or unshar) the file
is extracted fine and it is the same as before.
Adding a one line to it and turning the file into:
\chapter{S=C3=A9ries}
S=C3=A9ries de pot=C3=AAncias s=C3=A3o essenciais no estudo das fun=C3=A7=
=C3=B5es.
the same command produces a shar file that contains the text. But when we
execute sh it fails the MD5 check upon extraction:
$ sh file.shar
x - created lock directory _sh06764.
x - extracting test.tex (text)
test.tex: MD5 check failed
x - removed lock directory _sh06764.
and it produces a file that is recognized as ISO-8859 text and it has all
accents messed up, as in:
\chapter{S=C3=83=C2=A9ries}
S=C2=A9ries de pot=C3=83=C2=AAncias s=C3=83=C2=A3o essenciais no estudo das=
fun=C3=83=C2=A7=C3=83=C2=B5es.
I know the manual says that the you may have problems e-mailing files
produced with the -T flag, but this goes beyond mailing -- the file itself
is corrupted.
Paulo Ney