From cbb8a78c191d6fcbef1792862c9b0112a018b642 Mon Sep 17 00:00:00 2001 From: Massimo Santini Date: Mon, 14 Feb 2011 22:40:23 +0800 Subject: [PATCH] Fixed getlocale/setlocale bug accoriding to http://bugs.python.org/issue1699853 and http://hub.esss.com.br/wordpress/blog/archives/8561 --- pelican/writers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/writers.py b/pelican/writers.py index ea53aead..c40c0ea3 100644 --- a/pelican/writers.py +++ b/pelican/writers.py @@ -47,7 +47,7 @@ class Writer(object): :param filename: the filename to output. :param feed_type: the feed type to use (atom or rss) """ - old_locale = locale.getlocale(locale.LC_ALL) + old_locale = locale.setlocale(locale.LC_ALL) locale.setlocale(locale.LC_ALL, 'C') try: self.site_url = context.get('SITEURL', get_relative_path(filename))