Debian Codegraph @

debian/patches/static-help-message.diff

raw
1 From: Dmitry Shachnev <[email protected]>
2 Date: Thu, 8 Oct 2015 11:57:13 -0700
3 Subject: make the help message not depend on runtime encoding
4
5 This message goes into manpage, and we do not want the manpage to misleadingly
6 mention build-time locale there.
7
8 Bug: https://bugs.debian.org/791587
9 Forwarded: no
10 Last-Update: 2025-09-18
11 ---
12 docutils/frontend.py | 2 +-
13 test/data/help/docutils.rst | 2 +-
14 test/data/help/rst2html.rst | 2 +-
15 test/data/help/rst2latex.rst | 2 +-
16 4 files changed, 4 insertions(+), 4 deletions(-)
17
18 diff --git a/docutils/frontend.py b/docutils/frontend.py
19 index d5415f4..e3f1ac1 100644
20 --- a/docutils/frontend.py
21 +++ b/docutils/frontend.py
22 @@ -818,7 +818,7 @@ class OptionParser(optparse.OptionParser, docutils.SettingsSpec):
23 (SUPPRESS_HELP, ['--output-encoding-error-handler'],
24 {'default': 'strict', 'validator': validate_encoding_error_handler}),
25 ('Specify text encoding and optionally the error handler'
26 - f' for error output. Default: {default_error_encoding}.',
27 + ' for error output. Default: system encoding.',
28 ['--error-encoding', '-e'],
29 {'metavar': '<name[:handler]>', 'default': default_error_encoding,
30 'validator': validate_encoding_and_error_handler}),
31 diff --git a/test/data/help/docutils.rst b/test/data/help/docutils.rst
32 index e0235ae..7723c80 100644
33 --- a/test/data/help/docutils.rst
34 +++ b/test/data/help/docutils.rst
35 @@ -66,7 +66,7 @@ General Docutils Options
36 handler for output. Default: utf-8.
37 --error-encoding=<name[:handler]>, -e <name[:handler]>
38 Specify text encoding and optionally the error handler
39 - for error output. Default: utf-8.
40 + for error output. Default: system encoding.
41 --language=<tag>, -l <tag>
42 Specify the language (as BCP 47 language tag).
43 Default: en.
44 diff --git a/test/data/help/rst2html.rst b/test/data/help/rst2html.rst
45 index 25b5bf5..aacbd92 100644
46 --- a/test/data/help/rst2html.rst
47 +++ b/test/data/help/rst2html.rst
48 @@ -67,7 +67,7 @@ General Docutils Options
49 handler for output. Default: utf-8.
50 --error-encoding=<name[:handler]>, -e <name[:handler]>
51 Specify text encoding and optionally the error handler
52 - for error output. Default: utf-8.
53 + for error output. Default: system encoding.
54 --language=<tag>, -l <tag>
55 Specify the language (as BCP 47 language tag).
56 Default: en.
57 diff --git a/test/data/help/rst2latex.rst b/test/data/help/rst2latex.rst
58 index 947ea67..c73d6c1 100644
59 --- a/test/data/help/rst2latex.rst
60 +++ b/test/data/help/rst2latex.rst
61 @@ -67,7 +67,7 @@ General Docutils Options
62 handler for output. Default: utf-8.
63 --error-encoding=<name[:handler]>, -e <name[:handler]>
64 Specify text encoding and optionally the error handler
65 - for error output. Default: utf-8.
66 + for error output. Default: system encoding.
67 --language=<tag>, -l <tag>
68 Specify the language (as BCP 47 language tag).
69 Default: en.