[dput-ng-maint] Bug#803181: /usr/bin/dcut: UnicodeDecodeError when default_keyid contains non-ASCII character
ChangZhuo Chen
czchen at gmail.com
Tue Oct 27 18:31:26 UTC 2015
Package: dput-ng
Version: 1.10
Severity: normal
File: /usr/bin/dcut
Hi,
The dcut shows the following error message when I configure
".dput.d/profiles/DEFAULT.json".
Uploading commands file to ftp.upload.debian.org (incoming: /pub/UploadQueue/)
Not uploading for real - dry run
Traceback (most recent call last):
File "/usr/bin/dcut", line 107, in <module>
upload_command(args)
File "/usr/lib/python2.7/dist-packages/dput/command.py", line 234, in invoke_dcut
sign_file(fh.name, signing_key, profile, name, email)
File "/usr/lib/python2.7/dist-packages/dput/command.py", line 130, in sign_file
"name: %s, email: %s" % (filename, keyid, name, email))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 16: ordinal not in range(128)
The content of ".dput.d/profiles/DEFAULT.json" is:
{
"default_keyid": "BE0C924203F4552D"
}
The problem is that my keyring name is "ChangZhuo Chen (陳昌倬)", which
contains non-ASCII character. When the program try to log my name, it fails due
to non-ASCII in name. Remove the logger.debug in line 129 can workaround the
problem.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.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
Init: systemd (via /run/systemd/system)
Versions of packages dput-ng depends on:
ii python-dput 1.10
pn python:any <none>
Versions of packages dput-ng recommends:
ii bash-completion 1:2.1-4.2
dput-ng suggests no packages.
-- no debconf information
--
ChangZhuo Chen (陳昌倬) <czchen at debian.org>
Debian Developer
Key fingerprint = EC9F 905D 866D BE46 A896 C827 BE0C 9242 03F4 552D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/dput-ng-maint/attachments/20151028/0efec770/attachment.sig>
More information about the dput-ng-maint
mailing list