Bug#379418: dpkg-buildpackage: signing .dsc and .changes fails with UTF-8 encoded uid

2007-07-10 Thread Frank Lichtenheld
On Sun, Jul 23, 2006 at 02:46:26PM +0200, Székelyi Szabolcs wrote:
> Lintian (and Policy?) requires the Debian changelog to be UTF-8
> encoded. But if -- for example, -- the maintainer name is encoded this
> way, then gpg fails to find the secret key because assumes by default
> that the command line parameters are not UTF-8 encoded. Passing
> - --utf8-strings to gpg solves the problem.
> 
> Patch attached.

Can you give me a quick example that demonstrates the difference?
I can't seem to find one.

Gruesse,
-- 
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/



Bug#379418: dpkg-buildpackage: signing .dsc and .changes fails with UTF-8 encoded uid

2007-09-27 Thread Székelyi Szabolcs
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frank Lichtenheld wrote:
> On Sun, Jul 23, 2006 at 02:46:26PM +0200, Székelyi Szabolcs wrote:
>> Lintian (and Policy?) requires the Debian changelog to be UTF-8
>> encoded. But if -- for example, -- the maintainer name is encoded this
>> way, then gpg fails to find the secret key because assumes by default
>> that the command line parameters are not UTF-8 encoded. Passing
>> - --utf8-strings to gpg solves the problem.
>>
>> Patch attached.
> 
> Can you give me a quick example that demonstrates the difference?
> I can't seem to find one.

Just try building libvrb. Can it be a locale problem?

My $LANG is unset by default, this way I get:

==
 signfile libvrb_0.5.1-4.dsc
gpg: skipped "Székelyi Szabolcs <[EMAIL PROTECTED]>": secret key not
available
gpg: [stdin]: clearsign failed: secret key not available
==

Thanks,
- --
cc

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG/CbsGJRwVVqzMkMRAgKUAKCYZSS6veLmfPVpHBfHYAXC0ibrugCgg9k4
+Fk0WyKVmgcUcUQKS2ZY6oY=
=+MMh
-END PGP SIGNATURE-




Bug#379418: dpkg-buildpackage: signing .dsc and .changes fails with UTF-8 encoded uid

2007-09-27 Thread Frank Lichtenheld
On Thu, Sep 27, 2007 at 11:55:56PM +0200, Székelyi Szabolcs wrote:
> Frank Lichtenheld wrote:
> > On Sun, Jul 23, 2006 at 02:46:26PM +0200, Székelyi Szabolcs wrote:
> >> Lintian (and Policy?) requires the Debian changelog to be UTF-8
> >> encoded. But if -- for example, -- the maintainer name is encoded this
> >> way, then gpg fails to find the secret key because assumes by default
> >> that the command line parameters are not UTF-8 encoded. Passing
> >> - --utf8-strings to gpg solves the problem.
> >>
> >> Patch attached.
> > 
> > Can you give me a quick example that demonstrates the difference?
> > I can't seem to find one.
> 
> Just try building libvrb. Can it be a locale problem?
> 
> My $LANG is unset by default, this way I get:

Weird, now I can reproduce it too (And yeah, if LANG is set to a UTF-8
locale the error doesn't occour).

Adding --utf8-strings seems indeed to be the best solution.

Gruesse,
-- 
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/




Bug#379418: dpkg-buildpackage: signing .dsc and .changes fails with UTF-8 encoded uid

2006-07-23 Thread Székelyi Szabolcs
Package: dpkg-dev
Version: 1.13.22
Severity: normal
Tags: patch l10n

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Lintian (and Policy?) requires the Debian changelog to be UTF-8
encoded. But if -- for example, -- the maintainer name is encoded this
way, then gpg fails to find the secret key because assumes by default
that the command line parameters are not UTF-8 encoded. Passing
- --utf8-strings to gpg solves the problem.

Patch attached.

Bye,
- --
cc


- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.5
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages dpkg-dev depends on:
ii  binutils  2.17-1 The GNU assembler, linker and bina
ii  cpio  2.6-16 GNU cpio -- a program to manage ar
ii  dpkg  1.13.22package maintenance system for Deb
ii  make  3.81-2 The GNU version of the "make" util
ii  patch 2.5.9-4Apply a diff file to an original
ii  perl [perl5]  5.8.8-6Larry Wall's Practical Extraction 
ii  perl-modules  5.8.8-6Core Perl modules

Versions of packages dpkg-dev recommends:
ii  bzip2 1.0.3-3high-quality block-sorting file co
ii  gcc [c-compiler]  4:4.1.1-5  The GNU C compiler
ii  gcc-3.3 [c-compiler]  1:3.3.6-13 The GNU C compiler
ii  gcc-3.4 [c-compiler]  3.4.6-4The GNU C compiler
ii  gcc-4.0 [c-compiler]  4.0.3-5The GNU C compiler
ii  gcc-4.1 [c-compiler]  4.1.1-9The GNU C compiler

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEw2+iGJRwVVqzMkMRAj4iAKCeeM6oTaZ5SnwwW2PLM7sDJYe4bwCfd2rl
8PfJER8KLNl4zUz8WvhZhRo=
=LJak
-END PGP SIGNATURE-
--- scripts/dpkg-buildpackage.sh.orig   2006-07-23 14:41:08.0 +0200
+++ scripts/dpkg-buildpackage.sh2006-07-23 14:41:57.0 +0200
@@ -172,7 +172,7 @@
 signfile () {
if test "$signinterface" = "gpg" ; then
(cat "../$1" ; echo "") | \
-   $signcommand --local-user "${signkey:-$maintainer}" --clearsign 
--armor \
+   $signcommand --utf8-strings --local-user 
"${signkey:-$maintainer}" --clearsign --armor \
--textmode  > "../$1.asc" 
else
$signcommand -u "${signkey:-$maintainer}" +clearsig=on -fast 
<"../$1" \