Browse Source

modify the bug script to cope with non-ascii characters; patch by Nis Martensen; Closes: #851322

tags/7.1.3
Sandro Tosi 4 years ago
parent
commit
64367ea6cb
2 changed files with 6 additions and 3 deletions
  1. +4
    -1
      debian/changelog
  2. +2
    -2
      share/script

+ 4
- 1
debian/changelog View File

@@ -2,8 +2,11 @@ reportbug (7.1.3) UNRELEASED; urgency=medium

* debian/control
- bump Standards-Version to 3.9.8 (no changes needed)
* share/script
- modify the bug script to cope with non-ascii characters; patch by Nis
Martensen; Closes: #851322

-- Sandro Tosi <morph@debian.org> Wed, 04 Jan 2017 20:21:57 -0500
-- Sandro Tosi <morph@debian.org> Sun, 15 Jan 2017 15:23:29 -0500

reportbug (7.1.2) unstable; urgency=medium



+ 2
- 2
share/script View File

@@ -4,7 +4,7 @@
import os
import re

OUT=os.fdopen(3, 'w')
OUT = os.fdopen(3, 'w', encoding='utf-8', errors='backslashreplace')

envprint = False
for var in ['EDITOR', 'PAGER', 'VISUAL', 'REPORTBUGEMAIL', 'DEBEMAIL', 'EMAIL',
@@ -22,7 +22,7 @@ if os.path.exists(USERFILE):
if envprint:
print(file=OUT)
print('** %s:' % USERFILE, file=OUT)
for line in open(USERFILE, 'r'):
for line in open(USERFILE, 'r', encoding='utf-8', errors='backslashreplace'):
line = line.strip()
if line and not line.startswith('#'):
m = passwdre.match(line)


Loading…
Cancel
Save