authenticate: Allow signatures with binary data to be written to stdout.
authorLudovic Courtès <ludo@gnu.org>
Tue, 22 Apr 2014 09:30:51 +0000 (11:30 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 22 Apr 2014 09:30:58 +0000 (11:30 +0200)
commit6f69588529f9898dc4f2defd21603cc4abbaca17
treed272d8bd84f0653e0d5b7d409df3211c29fec784
parent6030d8493e13af81be63c3cee530d44b4dff1ad6
authenticate: Allow signatures with binary data to be written to stdout.

Fixes <http://bugs.gnu.org/17312>.

* guix/scripts/authenticate.scm (guix-authenticate): Add calls to
  'set-port-encoding!' and 'set-port-conversion-strategy!'.  Wrap body
  in 'with-fluids' form that sets '%default-port-encoding' and
  '%default-port-conversion-strategy'.
* tests/guix-authenticate.sh: Add test.
* tests/pk-crypto.scm ("hash corrupt due to restrictive locale
  encoding"): Add reference to bug.
guix/scripts/authenticate.scm
tests/guix-authenticate.sh
tests/pk-crypto.scm