Source: ifrench-gut
Version: 1:1.0-30
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that ifrench-gut uses sed on a file where its behavior depends on the
locale.

Examples:
$ sed -e 's/^SET.*/SET ISO8859-15/;s/^TRY.*/TRY
aeio������sinrtlcdugmphbyfvkw�������/' fr-pre.aff > fr.aff
$ LANG=C grep -a TRY fr-pre.aff
TRY aeio����sinrtlcdugmphbyfvkw
$ LANG=C grep -a TRY fr.aff
TRY aeio������sinrtlcdugmphbyfvkw�����������sinrtlcdugmphbyfvkw

$ LC_ALL=C sed -e 's/^SET.*/SET ISO8859-15/;s/^TRY.*/TRY
aeio������sinrtlcdugmphbyfvkw�������/' fr-pre.aff > fr.aff
$ LANG=C grep -a TRY fr-pre.aff
TRY aeio����sinrtlcdugmphbyfvkw
$ LANG=C grep -a TRY fr.aff
TRY aeio������sinrtlcdugmphbyfvkw�������

The attached patch sets LC_ALL so sed will has the same behavior on all
systems.

 [1]: https://wiki.debian.org/ReproducibleBuilds

Regards,
Valentin
diff -u ifrench-gut-1.0.old/debian/rules ifrench-gut-1.0/debian/rules
--- ifrench-gut-1.0.old/debian/rules	2015-08-15 12:30:56.000000000 +0000
+++ ifrench-gut-1.0/debian/rules	2015-08-15 12:31:43.308857324 +0000
@@ -26,7 +26,7 @@
 	# Add here commands to compile the package.
 	./makehash
 	is2my-spell.pl francais.aff > fr-pre.aff
-	sed -e 's/^SET.*/SET ISO8859-15/;s/^TRY.*/TRY aeioàéèêîâsinrtlcdugmphbyfvkwôûëöïù½/' fr-pre.aff > fr.aff
+	LC_ALL=C sed -e 's/^SET.*/SET ISO8859-15/;s/^TRY.*/TRY aeioàéèêîâsinrtlcdugmphbyfvkwôûëöïù½/' fr-pre.aff > fr.aff
 	wc -l < francais.dico > francais.dico.cnt
 	cat francais.dico.cnt francais.dico > fr.dic
 
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to