summaryrefslogtreecommitdiff
path: root/sphinx/transforms.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2016-05-05 23:26:19 +0900
committershimizukawa <shimizukawa@gmail.com>2016-05-06 00:33:06 +0900
commit26fecafb4920a8d9dacaa9e3614bf182ce12696a (patch)
tree02c719996e3c8f68e28ff8825ec1f3b2c72aa637 /sphinx/transforms.py
parentd6572259d66cfb9da967f45fb2d671d29c5d5683 (diff)
downloadsphinx-git-26fecafb4920a8d9dacaa9e3614bf182ce12696a.tar.gz
fix #2522: Sphinx touches mo files under installed directory
that caused permission error.
Diffstat (limited to 'sphinx/transforms.py')
-rw-r--r--sphinx/transforms.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/transforms.py b/sphinx/transforms.py
index 47e22237e..abeab7dab 100644
--- a/sphinx/transforms.py
+++ b/sphinx/transforms.py
@@ -239,9 +239,7 @@ class Locale(Transform):
# fetch translations
dirs = [path.join(env.srcdir, directory)
for directory in env.config.locale_dirs]
- catalog, has_catalog = init_locale(dirs, env.config.language,
- textdomain,
- charset=env.config.source_encoding)
+ catalog, has_catalog = init_locale(dirs, env.config.language, textdomain)
if not has_catalog:
return