From 082cc2a401ba4b6697e2ba8fa8aaf95c3c29b2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88kull=20So=CC=81lberg=20Au=C3=B0unsson?= Date: Sat, 26 Nov 2011 22:31:43 +0000 Subject: [PATCH] Warning string formatting needs unicode if filename is utf-8 --- pelican/contents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/contents.py b/pelican/contents.py index ddcb37b6..1587a1eb 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -38,7 +38,7 @@ class Page(object): self.author = settings['AUTHOR'] else: self.author = getenv('USER', 'John Doe') - warning("Author of `{0}' unknow, assuming that his name is `{1}'".format(filename or self.title, self.author).decode("utf-8")) + warning(u"Author of `{0}' unknow, assuming that his name is `{1}'".format(filename or self.title, self.author)) # manage languages self.in_default_lang = True