mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
dgetlp: Require a UTF-8 locale, or it'll crash when displaying errors
(LP: #979117)
This commit is contained in:
parent
e47a99c42a
commit
165bb84bf5
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -6,6 +6,8 @@ ubuntu-dev-tools (0.142) UNRELEASED; urgency=low
|
||||
* check-mir, check-symbols, grep-merges, pbuilder-dist-simple,
|
||||
setup-packaging-environment, submittodebian, ubuntu-iso:
|
||||
Do enough argument parsing to handle --help (LP: #988009)
|
||||
* dgetlp: Require a UTF-8 locale, or it'll crash when displaying errors
|
||||
(LP: #979117)
|
||||
|
||||
-- Stefano Rivera <stefanor@debian.org> Wed, 25 Apr 2012 17:38:58 +0200
|
||||
|
||||
|
3
dgetlp
3
dgetlp
@ -43,6 +43,7 @@ except ImportError:
|
||||
sys.exit(1)
|
||||
|
||||
from ubuntutools import subprocess
|
||||
import ubuntutools.misc
|
||||
|
||||
USAGE = u"""Usage: %prog [-d|(-v|-q)] <Launchpad URL>
|
||||
|
||||
@ -253,6 +254,8 @@ def main():
|
||||
default=False, help="Never print any output")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
ubuntutools.misc.require_utf8()
|
||||
|
||||
if len(args) != 1:
|
||||
parser.error("Missing URL")
|
||||
Debug = options.debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user