pk-crypto: Use ISO-8859-1 for strings passed to 'gcry_sexp_new'.
authorLudovic Courtès <ludo@gnu.org>
Mon, 21 Apr 2014 23:36:31 +0000 (01:36 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 21 Apr 2014 23:39:31 +0000 (01:39 +0200)
commit6030d8493e13af81be63c3cee530d44b4dff1ad6
tree2d0760d036839dd31647d35517c80040be4fabcb
parent50db7d82b3f3ab8ec382132b06a1400c0044b89e
pk-crypto: Use ISO-8859-1 for strings passed to 'gcry_sexp_new'.

* guix/pk-crypto.scm (string->canonical-sexp): Pass "ISO-8859-1" as the
  2nd argument to 'string->pointer'.
* tests/pk-crypto.scm ("version"): New test.
  ("hash corrupt due to restrictive locale encoding"): New test.
guix/pk-crypto.scm
tests/pk-crypto.scm