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/cmd | |
| parent | e9c87b3d13c192a9b6a82d9ce0c6572f85e85743 (diff) | |
| download | sphinx-git-4b331dae48cea3564ba6ebcebc5c7218cbcd4ffc.tar.gz | |
Fix #5724: quickstart: sphinx-quickstart fails when $LC_ALL is empty
Diffstat (limited to 'sphinx/cmd')
| -rw-r--r-- | sphinx/cmd/build.py | 2 | ||||
| -rw-r--r-- | sphinx/cmd/quickstart.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 35176c7fc..16aa41742 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -310,7 +310,7 @@ def build_main(argv=sys.argv[1:]): # type: ignore def main(argv=sys.argv[1:]): # type: ignore # type: (List[unicode]) -> int - locale.setlocale(locale.LC_ALL, '') + sphinx.locale.setlocale(locale.LC_ALL, '') sphinx.locale.init_console(os.path.join(package_dir, 'locale'), 'sphinx') if argv[:1] == ['-M']: diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index 61ca3b10f..5494423e4 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -613,7 +613,7 @@ Makefile to be used with sphinx-build. def main(argv=sys.argv[1:]): # type: (List[str]) -> int - locale.setlocale(locale.LC_ALL, '') + sphinx.locale.setlocale(locale.LC_ALL, '') sphinx.locale.init_console(os.path.join(package_dir, 'locale'), 'sphinx') if not color_terminal(): |
