1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From 8f0658957a05bcf614cb86f73750ef63a8e85a93 Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev <mitya57@debian.org>
Date: Thu, 8 Oct 2015 11:57:13 -0700
Subject: make the help message not depend on runtime encoding
This message goes into manpage, and we do not want the manpage to misleadingly
mention build-time locale there.
Bug: https://bugs.debian.org/791587
Forwarded: no
Last-Update: 2015-07-21
Patch-Name: static-help-message.diff
---
docutils/frontend.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docutils/frontend.py b/docutils/frontend.py
index f837c62..dca26ea 100644
--- a/docutils/frontend.py
+++ b/docutils/frontend.py
@@ -482,8 +482,8 @@ class OptionParser(optparse.OptionParser, docutils.SettingsSpec):
['--output-encoding-error-handler'],
{'default': 'strict', 'validator': validate_encoding_error_handler}),
('Specify text encoding and error handler for error output. '
- 'Default: %s:%s.'
- % (default_error_encoding, default_error_encoding_error_handler),
+ 'Default text encoding: system encoding. Default error handler: %s.'
+ % default_error_encoding_error_handler,
['--error-encoding', '-e'],
{'metavar': '<name[:handler]>', 'default': default_error_encoding,
'validator': validate_encoding_and_error_handler}),
|