diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-17 23:08:08 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-17 23:08:08 +0900 |
commit | 4b331dae48cea3564ba6ebcebc5c7218cbcd4ffc (patch) | |
tree | 344d7f6997ef02c1246db71f492fad8a5b9653a5 /sphinx/ext/apidoc.py | |
parent | e9c87b3d13c192a9b6a82d9ce0c6572f85e85743 (diff) | |
download | sphinx-git-4b331dae48cea3564ba6ebcebc5c7218cbcd4ffc.tar.gz |
Fix #5724: quickstart: sphinx-quickstart fails when $LC_ALL is empty
Diffstat (limited to 'sphinx/ext/apidoc.py')
-rw-r--r-- | sphinx/ext/apidoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py index a154f6449..25f9275f7 100644 --- a/sphinx/ext/apidoc.py +++ b/sphinx/ext/apidoc.py @@ -387,7 +387,7 @@ Note: By default this script will not overwrite already created files.""")) def main(argv=sys.argv[1:]): # type: (List[str]) -> int """Parse and check the command line arguments.""" - locale.setlocale(locale.LC_ALL, '') + sphinx.locale.setlocale(locale.LC_ALL, '') sphinx.locale.init_console(os.path.join(package_dir, 'locale'), 'sphinx') parser = get_parser() |