[Reproducible-builds] Bug#795581: ifrench-gut: Make build work with any host locale

Valentin Lorentz progval at progval.net
Sat Aug 15 12:40:36 UTC 2015


Source: ifrench-gut
Version: 1:1.0-30
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifrench-gut_locale-set-behavior.diff
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150815/62553750/attachment.bin>


More information about the Reproducible-builds mailing list