diff options
author | Deniz Turgut <dturgut@gmail.com> | 2014-06-26 00:51:45 -0400 |
---|---|---|
committer | Deniz Turgut <dturgut@gmail.com> | 2014-06-26 01:01:42 -0400 |
commit | 009543b7e476d3bcaca3dd8576a47631c06de1e7 (patch) | |
tree | a7bad7562b2006b3031a3c0b0310bb982177785f /samples | |
parent | 3f6b130d6ed427f19e444057958661ee00875ca0 (diff) | |
download | pelican-009543b7e476d3bcaca3dd8576a47631c06de1e7.tar.gz |
Fix test errors on OSX
On OSX, if LC_TIME and LC_CTYPE differs the output of strftime is not properly decoded
in Python 3. This makes sure that the 'utils.DateFormatter' and the related Jinja filter
'strftime' set the same value for LC_TIME and LC_CTYPE while formatting.
Also, '%a' is removed from DEFAULT_DATE_FORMAT in 'custom_locale' tests. OSX and *nix have
different conversions for '%a' ('Jeu' vs 'jeu.') and there is not a feasible way to handle
the difference for tests.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/pelican.conf_FR.py (renamed from samples/pelican_FR.conf.py) | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/pelican_FR.conf.py b/samples/pelican.conf_FR.py index 1f6aaaa1..0c4ec60d 100644 --- a/samples/pelican_FR.conf.py +++ b/samples/pelican.conf_FR.py @@ -16,6 +16,7 @@ REVERSE_CATEGORY_ORDER = True LOCALE = "fr_FR.UTF-8" DEFAULT_PAGINATION = 4 DEFAULT_DATE = (2012, 3, 2, 14, 1, 1) +DEFAULT_DATE_FORMAT = '%d %B %Y' ARTICLE_URL = 'posts/{date:%Y}/{date:%B}/{date:%d}/{slug}/' ARTICLE_SAVE_AS = ARTICLE_URL + 'index.html' |