authenticate: Encode strings as ISO-8859-1.
authorLudovic Courtès <ludo@gnu.org>
Tue, 15 Sep 2020 12:24:05 +0000 (14:24 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 15 Sep 2020 12:40:20 +0000 (14:40 +0200)
commitb911d6547444b5f8d17b224bafa5ee1b5aafaff5
tree0d6115a775a0286ab5fbda156940aa2f84b7e682
parent1b157bbef0032121c88be2bbb834846115ce9341
authenticate: Encode strings as ISO-8859-1.

Fixes <https://bugs.gnu.org/43421>.

* guix/scripts/authenticate.scm (read-command): Decode strings as
ISO-8859-1, not UTF-8.
(guix-authenticate)[send-reply]: Encode strings as ISO-8859-1, not
UTF-8.
* tests/guix-authenticate.sh: Add test.
guix/scripts/authenticate.scm
tests/guix-authenticate.sh