diff --git a/pelican/writers.py b/pelican/writers.py index 30b0ed16..f22afbd8 100644 --- a/pelican/writers.py +++ b/pelican/writers.py @@ -147,12 +147,7 @@ class Writer(object): def _write_file(template, localcontext, output_path, name, override): """Render the template write the file.""" - old_locale = locale.setlocale(locale.LC_ALL) - locale.setlocale(locale.LC_ALL, str('C')) - try: - output = template.render(localcontext) - finally: - locale.setlocale(locale.LC_ALL, old_locale) + output = template.render(localcontext) path = os.path.join(output_path, name) try: os.makedirs(os.path.dirname(path))