Subject: Re: gnupg 1.4 and libiconv (was Re: gnupg 1.4)
To: Mark Davies <>
From: Thomas Klausner <>
List: tech-pkg
Date: 01/11/2005 12:03:13
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Jan 11, 2005 at 05:19:13PM +1300, Mark Davies wrote:
> I'm seeing the same problem on Solaris (and pkgsrc libiconv) so I'd also like 
> to hear a solution.

Werner Koch (the author) writes:
 > gpg: conversion from `utf-8' to `646' not available
 You should set your locale correctly.  IIRC, 646 means plain 7 bit
 ASCII and thus mapping of any 8 bit character set is not possible.
 > I am calling gpg from the command line and did try various settings of --display-charset and --ch
 Check your OS manuals on how to set the locale.

So I tried unsetting LC_CTYPE and could reproduce it on 1.6.2.
The attached patch fixes the problem for me. Does it fix it for
you too?

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=gpg-diff

? work
Index: Makefile
RCS file: /pub/NetBSD-CVS/pkgsrc/security/gnupg/Makefile,v
retrieving revision 1.72
diff -u -r1.72 Makefile
--- Makefile	25 Dec 2004 02:54:13 -0000	1.72
+++ Makefile	11 Jan 2005 11:01:37 -0000
@@ -24,6 +24,7 @@
 USE_GNU_TOOLS+=		make
 CONFIGURE_ARGS+=	--with-static-rnd=auto
 CONFIGURE_ARGS+=	--with-mailprog=/usr/sbin/sendmail
 TEST_TARGET=		check