forked from github/pelican
For python 2+, initialize locale. Fixes #2043
This commit is contained in:
parent
c413bcdb94
commit
5c6ae32f99
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ import six
|
|||
|
||||
from pelican import __version__
|
||||
|
||||
if (sys.version_info.major == 2):
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
|
||||
_TEMPLATES_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
||||
"templates")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue