diff --git a/debian/changelog b/debian/changelog index 4c8ccd5..2e0977f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 25 Apr 2012 17:38:58 +0200 diff --git a/dgetlp b/dgetlp index 91337dc..f114848 100755 --- a/dgetlp +++ b/dgetlp @@ -43,6 +43,7 @@ except ImportError: sys.exit(1) from ubuntutools import subprocess +import ubuntutools.misc USAGE = u"""Usage: %prog [-d|(-v|-q)] @@ -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