[Reportbug-maint] Bug#578085: when tryign to send a bug report for backup2l with configfiles do I get an error message

Carl Chenet chaica at ohmytux.com
Thu May 20 00:19:15 UTC 2010


Package: reportbug
Version: 4.10.2
Severity: normal

This bug is related to a mix between ascii and utf-8. Here is a patch to solve this issue.

Bye,
Carl Chenet

Blog: http://carlchenet.wordpress.com
Identi.ca: http://identi.ca/carlchenet


-- Package-specific info:
** Environment settings:
DEBEMAIL="chaica at ohmytux.com"
DEBFULLNAME="Carl Chenet"
INTERFACE="text"

** /home/chaica/.reportbugrc:
reportbug_version "4.10.2"
mode novice
ui text
smtphost "smtp.free.fr"

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages reportbug depends on:
ii  apt                           0.7.23.1   Advanced front-end for dpkg
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-reportbug              4.10.2     Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils        <none>              (no description available)
ii  debsums              2.0.47              tool for verification of installed
pn  dlocate              <none>              (no description available)
pn  emacs22-bin-common | <none>              (no description available)
ii  exim4                4.69-11             metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [ 4.69-11+b1          lightweight Exim MTA (v4) daemon
ii  file                 5.03-1              Determines file type using "magic"
ii  gnupg                1.4.10-1            GNU privacy guard - a free PGP rep
ii  python-gtk2          2.16.0-2            Python bindings for the GTK+ widge
pn  python-gtkspell      <none>              (no description available)
pn  python-urwid         <none>              (no description available)
pn  python-vte           <none>              (no description available)
ii  xdg-utils            1.0.2+cvs20100307-1 desktop integration utilities from

-- no debconf information
-------------- next part --------------
>From 25262efc8f33bc3db18dd3c7b7f9fa7400250914 Mon Sep 17 00:00:00 2001
From: chaica <chaica at ohmytux.com>
Date: Thu, 20 May 2010 02:11:28 +0200
Subject: [PATCH] convert the config file to utf-8

---
 reportbug/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/reportbug/utils.py b/reportbug/utils.py
index 0c472e8..7cc12e6 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -661,7 +661,7 @@ def get_changed_config_files(conffiles, nocompress=False):
 
             thisinfo += line
 
-        confinfo[filename] = thisinfo
+        confinfo[filename] = thisinfo.decode('utf-8', 'replace')
 
     return confinfo, changed
 
-- 
1.6.5.3



More information about the Reportbug-maint mailing list