This commit is contained in:
Massimo Santini 2011-02-14 15:40:23 +01:00
commit aba1b39211

View file

@ -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))