[Reportbug-commits] r660 - in branches/lenny (3 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Nov 2 12:18:19 UTC 2008


    Date: Sunday, November 2, 2008 @ 12:18:18
  Author: morph
Revision: 660

* debian/control
  - updated my email address
* reportbuglib/reportbug_ui_text.py
  - convert BTS output from UTF-8 to local encoding; thanks to Mark Hobley,
    Gregor Herrmann and Klaus Ethgen for the bug reports and to Vincent
    Fourmond for the patch; Closes: #497641, #496159, #504005

Modified:
  branches/lenny/debian/changelog
  branches/lenny/debian/control
  branches/lenny/reportbuglib/reportbug_ui_text.py

Modified: branches/lenny/debian/changelog
===================================================================
--- branches/lenny/debian/changelog	2008-10-23 15:09:59 UTC (rev 659)
+++ branches/lenny/debian/changelog	2008-11-02 12:18:18 UTC (rev 660)
@@ -1,3 +1,14 @@
+reportbug (3.46) unstable; urgency=low
+
+  * debian/control
+    - updated my email address
+  * reportbuglib/reportbug_ui_text.py
+    - convert BTS output from UTF-8 to local encoding; thanks to Mark Hobley,
+      Gregor Herrmann and Klaus Ethgen for the bug reports and to Vincent
+      Fourmond for the patch; Closes: #497641, #496159, #504005
+
+ -- Sandro Tosi <morph at debian.org>  Sun, 02 Nov 2008 12:54:33 +0100
+
 reportbug (3.45) unstable; urgency=low
 
   * reportbuglib/reportbug_ui_urwid.py

Modified: branches/lenny/debian/control
===================================================================
--- branches/lenny/debian/control	2008-10-23 15:09:59 UTC (rev 659)
+++ branches/lenny/debian/control	2008-11-02 12:18:18 UTC (rev 660)
@@ -2,7 +2,7 @@
 Section: utils
 Priority: standard
 Maintainer: Reportbug Maintainers <reportbug-maint at lists.alioth.debian.org>
-Uploaders: Sandro Tosi <matrixhasu at gmail.com>, Y Giridhar Appaji Nag <giridhar at appaji.net>, Chris Lawrence <lawrencc at debian.org>
+Uploaders: Sandro Tosi <morph at debian.org>, Y Giridhar Appaji Nag <giridhar at appaji.net>, Chris Lawrence <lawrencc at debian.org>
 Standards-Version: 3.8.0
 Build-Depends: debhelper (>= 5.0.37.2), po4a (>= 0.23)
 Build-Depends-Indep: python, python-central (>= 0.5.14), python-nose

Modified: branches/lenny/reportbuglib/reportbug_ui_text.py
===================================================================
--- branches/lenny/reportbuglib/reportbug_ui_text.py	2008-10-23 15:09:59 UTC (rev 659)
+++ branches/lenny/reportbuglib/reportbug_ui_text.py	2008-11-02 12:18:18 UTC (rev 660)
@@ -31,6 +31,7 @@
 import glob
 import getpass
 import textwrap
+import locale
 try:
     import readline
 except ImportError:
@@ -521,6 +522,7 @@
 
 def browse_bugs(hierarchy, count, bugs, bts, queryonly, mirrors,
                 http_proxy, screen, title):
+    output_encoding = locale.getpreferredencoding()
     endcount = catcount = 0
     scount = startcount = 1
     category = hierarchy[0]
@@ -585,7 +587,8 @@
                     helptext['n'] = helptext['n'][:-1]+' (skip to Next page).'
 
                 while 1:
-                    sys.stderr.writelines(lastpage)
+                    for line in lastpage:
+                        sys.stderr.write(line.decode('utf-8').encode(output_encoding, "replace"))
                     x = select_options(pstr, options, helptext,
                                        allow_numbers=allowed)
                     if x == 'n':




More information about the Reportbug-commits mailing list