Package: signing-party Version: 1.1.3-1 Severity: normal File: /usr/bin/caff
Hello, it was brought to my attention that the mails I send using caff don't encode my name in the From: header. I'm using an utf-8 locale and $CONFIG{'owner'} = q{Uwe Kleine-König.de}; This breaks because of: $ perl -e 'use Encode; print Encode::encode("MIME-Q", q{Uwe Kleine-König}) . "\n";' =?UTF-8?Q?Uwe=20Kleine=2DK=C3=83=C2=B6nig?= The right string to use would be =?UTF-8?Q?Uwe=20Kleine=2DK=C3=B6nig?= \xc3\x83\xc2\xb6 is the result from encoding the latin1 string "\xc3\xb6" (which interpreted as utf-8 is "ö") to utf-8. When changing to $CONFIG{'owner'} = "Uwe Kleine-K\x{f6}nig.de"; the From: header is correct (i.e.: $ perl -e 'use Encode; print Encode::encode("MIME-Q", "Uwe Kleine-K\x{f6}nig") . "\n";' =?UTF-8?Q?Uwe=20Kleine=2DK=C3=B6nig?= But then the name in the Mail is misencoded: $ perl -e 'use Text::Template; $msg = Text::Template->new(TYPE => "STRING", SOURCE => "lala {\$owner}\n"); print $msg->fill_in(HASH => { owner => "Uwe Kleine-K\x{f6}nig", });' lala Uwe Kleine-K�nig Adding "use utf8" and sticking to $CONFIG{'owner'} = q{Uwe Kleine-König.de} would solve both problems, but I guess that's not an option as it would be an incompatible change. For a better solution my perl foo isn't good enough. Best regards Uwe -- System Information: Debian Release: 6.0.4 APT prefers stable-updates APT policy: (900, 'stable-updates'), (900, 'proposed-updates'), (900, 'stable'), (800, 'testing-proposed-updates'), (800, 'testing'), (700, 'unstable'), (600, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages signing-party depends on: ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep ii libc6 2.13-26 Embedded GNU C Library: Shared lib ii libclass-methodmaker-perl 2.18-1+b1 Perl module for creating generic m ii libgnupg-interface-perl 0.42-3 Perl interface to GnuPG ii libmailtools-perl 2.08-1 Manipulate email in perl programs ii libmime-tools-perl 5.502-1 Perl5 modules for MIME-compliant m ii libterm-readkey-perl 2.30-4+b2 A perl module for simple terminal ii libtext-template-perl 1.45-1 Text::Template perl module ii perl 5.14.2-7 Larry Wall's Practical Extraction ii qprint 1.0.dfsg.2-2 encoder and decoder for quoted-pri Versions of packages signing-party recommends: ii exim4-daemon-light [mail-tra 4.77-1+b1 lightweight Exim MTA (v4) daemon ii libgd-gd2-noxpm-perl 1:2.46-2+b1 Perl module wrapper for libgd - gd ii libpaper-utils 1.1.24+nmu1 library for handling paper charact ii libtext-iconv-perl 1.7-5 converts between character sets in ii whiptail 0.52.11-1 Displays user-friendly dialog boxe Versions of packages signing-party suggests: ii imagemagick 8:6.6.9.7-5+b2 image manipulation programs ii mutt 1.5.20-9+squeeze2 text-based mailreader supporting M ii texlive-latex-recommen 2009-11 TeX Live: LaTeX recommended packag pn wipe <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org