[Reportbug-commits] [reportbug] 01/01: set default encoding to UTF-8, should prevent all the "UnicodeDecodeError: 'ascii' codec can't decode" bugs; Closes: #769013, #739507, #761367, #771833, #672487, #739507, #612712, #690882, #779200, #642096, #666116

Sandro Tosi morph at moszumanska.debian.org
Sat Apr 25 03:38:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit 78de3053ccf31d9ecb0913136e5ed2510dcc1659
Author: Sandro Tosi <morph at debian.org>
Date:   Fri Apr 24 23:38:02 2015 -0400

    set default encoding to UTF-8, should prevent all the "UnicodeDecodeError: 'ascii' codec can't decode" bugs; Closes: #769013, #739507, #761367, #771833, #672487, #739507, #612712, #690882, #779200, #642096, #666116
---
 bin/reportbug    | 4 ++++
 debian/changelog | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/bin/reportbug b/bin/reportbug
index 8cae380..fb63c10 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -24,6 +24,10 @@
 DEFAULT_BTS = 'debian'
 
 import sys
+
+reload(sys)
+sys.setdefaultencoding("utf-8")
+
 import os
 import optparse
 import re
diff --git a/debian/changelog b/debian/changelog
index a078ebb..3c5ad4e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,9 @@ reportbug (6.6.4) UNRELEASED; urgency=medium
   * bin/reportbug
     - suggest to contact Debian support channels when reporting bugs against
       generic packages; thanks to Tomas Pospisek for the patch; Closes: #661563
+    - set default encoding to UTF-8, should prevent all the "UnicodeDecodeError:
+      'ascii' codec can't decode" bugs; Closes: #769013, #739507, #761367,
+      #771833, #672487, #739507, #612712, #690882, #779200, #642096, #666116
   * reportbug/{debbugs.py, ui/text_ui.py}, test/test_{debbugs.py, urlutils.py}
     - use HTTPS when connecting to Debian BTS
   * bin/reportbug, reportbug/ui/urwid_ui.py
@@ -28,7 +31,7 @@ reportbug (6.6.4) UNRELEASED; urgency=medium
     - support LANG declined Description-xx field in package information; thanks
       to Robert Luberda for the report; Closes: #683116
 
- -- Sandro Tosi <morph at debian.org>  Tue, 14 Apr 2015 13:43:41 +0100
+ -- Sandro Tosi <morph at debian.org>  Fri, 24 Apr 2015 21:37:28 -0400
 
 reportbug (6.6.3) unstable; urgency=medium
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list