mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixed getlocale/setlocale bug accoriding to http://bugs.python.org/issue1699853 and http://hub.esss.com.br/wordpress/blog/archives/8561
This commit is contained in:
parent
d3fd066209
commit
cbb8a78c19
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue