Patch for tar - Gettext 0.12.x

Jim Gifford jim at
Wed Jun 25 10:37:04 PDT 2003

I found out when trying to recompile that tar will exit out with the
following error

/usr/bin/xgettext: Non-ASCII string at tests/genfile.c:165.
Please specify the source encoding through --from-code.
mv: cannot stat `tar.po': No such file or directory
make[3]: *** [tar.pot] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive-am] Error 2
make: *** [/var/lfsupdate/Info/core/tar-1.13] Error 2

It was a simple fix for a change, there is a character on genfile.c.165 that
xgettext doesn't understand.

Here is the patch.

diff -uNr tar-1.13.orig/tests/genfile.c tar-1.13/tests/genfile.c
--- tar-1.13.orig/tests/genfile.c       1997-04-21 23:05:29.000000000 -0700
+++ tar-1.13/tests/genfile.c    2003-06-25 10:31:04.000000000 -0700
@@ -164,7 +164,7 @@
       fputs (_("\
-Written by François Pinard <pinard at>.\n"),
+Written by Francois Pinard <pinard at>.\n"),
       exit (EXIT_SUCCESS);

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list