Subject: Re: gnupg 1.4 and libiconv (was Re: gnupg 1.4)
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 01/11/2005 12:03:13
--3MwIy2ne0vdjdPXF
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.
In http://lists.gnupg.org/pipermail/gnupg-users/2004-December/023951.html
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.
Hth,
Werner
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?
Thomas
--3MwIy2ne0vdjdPXF
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_BUILDLINK3= yes
USE_PKGLOCALEDIR= yes
USE_GNU_TOOLS+= make
+MAKE_ENV+= LC_CTYPE=en_US.UTF-8
CONFIGURE_ARGS+= --with-static-rnd=auto
CONFIGURE_ARGS+= --with-mailprog=/usr/sbin/sendmail
TEST_TARGET= check
--3MwIy2ne0vdjdPXF--