[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.6-6-g95c4b89

Sandro Tosi morph at debian.org
Tue Aug 18 06:40:09 UTC 2009


The following commit has been merged in the master branch:
commit fb831080accc40f6f21ddddfe5665ec6c3b4396c
Author: chaica <chaica at ohmytux.com>
Date:   Mon Aug 17 23:59:33 2009 +0200

    filter option fix

diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index 426340c..2eeb920 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -759,6 +759,12 @@ def search_bugs(hierarchyfull, bts, queryonly, mirrors,
     """Search for the bug list using a pattern."""
     """Return string "FilterEnd" when we are done with search."""
 
+    try:
+        output_encoding = locale.getpreferredencoding()
+    except locale.Error, msg:
+        print msg
+        sys.exit(1)
+
     pattern = our_raw_input(
 	'Enter the search pattern (a Perl-compatible regular expression)\n'
 	'or press ENTER to exit: ')
@@ -847,7 +853,8 @@ def search_bugs(hierarchyfull, bts, queryonly, mirrors,
                     helptext['n'] = helptext['n'][:-1]+' (skip to Next page).'
 
                 while 1:
-                    sys.stderr.writelines(lastpage)
+                    for line in lastpage:
+                        sys.stderr.write(line.encode(output_encoding, "replace"))
                     x = select_options(pstr, options, helptext,
                                        allow_numbers=allowed)
                     if x == 'n':

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list