substitute: Set LC_MESSAGES to the client's locale, not LC_ALL.
authorLudovic Courtès <ludo@gnu.org>
Wed, 2 Sep 2020 13:53:06 +0000 (15:53 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 2 Sep 2020 15:17:36 +0000 (17:17 +0200)
commitaba8def46d392b3ef2278d16a2c9708fab05c6fd
tree63af5aedfca23f13c583f398b7d37dc8a13b46bb
parent8ce6f4dc2879919c12bc76a2f4b01200af97e019
substitute: Set LC_MESSAGES to the client's locale, not LC_ALL.

Fixes <https://bugs.gnu.org/43039>.
Reported by Adam Griffiths <adam.lw.griffiths@gmail.com>.

Previously, a client could lead 'guix substitute' to run in a non-UTF-8
locale, such as the "C" locale.  Consequently, 'guix substitute' would
now fail to decode UTF-8 file names such as those that appear in the
'nss-certs' package.

* guix/scripts/substitute.scm (guix-substitute): Set LC_MESSAGES, not LC_ALL.
guix/scripts/substitute.scm