contents: Encode Unicode locales for Python 2 in Page.__init__
contents: Encode Unicode locales for Python 2 in Page.__init__

Python 2.7 chokes on Unicode locales:

  $ python2.7
  >>> import locale
  >>> locale.setlocale(locale.LC_ALL, u'ja_JP.utf8')
  Traceback (most recent call last):
    ...
  ValueError: too many values to unpack

With the addition of:

  from __future__ import unicode_literals

to tests/test_contents.py in:

  commit bebb94c15be1ae7ff7ec241f6e1de5aa18556654
  Author: W. Trevor King <wking@tremily.us>
  Date:   Tue Jan 15 22:50:58 2013 -0500

    test_contents.py: Add URLWrapper comparison tests

the locale strings in TestPage.test_datetime are interpreted as
Unicode.  Rather than fixing the encoding there, this patch updates
Page to handle Unicode locales automatically.

UdeskDeveloper/pelican,koobs/pelican,treyhunner/pelican,treyhunner/pelican,alexras/pelican,number5/pelican,douglaskastle/pelican,karlcow/pelican,jvehent/pelican,douglaskastle/pelican,ls2uper/pelican,kennethlyn/pelican,sunzhongwei/pelican,justinmayer/pelican,simonjj/pelican,garbas/pelican,abrahamvarricatt/pelican,florianjacob/pelican,Summonee/pelican,lazycoder-ru/pelican,goerz/pelican,HyperGroups/pelican,eevee/pelican,number5/pelican,TC01/pelican,farseerfc/pelican,deanishe/pelican,0xMF/pelican,karlcow/pelican,lucasplus/pelican,deanishe/pelican,alexras/pelican,ionelmc/pelican,Polyconseil/pelican,goerz/pelican,florianjacob/pelican,Polyconseil/pelican,Rogdham/pelican,eevee/pelican,janaurka/git-debug-presentiation,garbas/pelican,abrahamvarricatt/pelican,kernc/pelican,fbs/pelican,rbarraud/pelican,51itclub/pelican,gymglish/pelican,ls2uper/pelican,GiovanniMoretti/pelican,janaurka/git-debug-presentiation,jo-tham/pelican,janaurka/git-debug-presentiation,avaris/pelican,douglaskastle/pelican,rbarraud/pelican,ingwinlu/pelican,jvehent/pelican,catdog2/pelican,avaris/pelican,JeremyMorgan/pelican,simonjj/pelican,iKevinY/pelican,iurisilvio/pelican,lucasplus/pelican,JeremyMorgan/pelican,arty-name/pelican,GiovanniMoretti/pelican,jvehent/pelican,kernc/pelican,zackw/pelican,btnpushnmunky/pelican,crmackay/pelican,liyonghelpme/myBlog,levanhien8/pelican,GiovanniMoretti/pelican,sunzhongwei/pelican,kernc/pelican,talha131/pelican,deved69/pelican-1,getpelican/pelican,btnpushnmunky/pelican,abrahamvarricatt/pelican,catdog2/pelican,catdog2/pelican,kennethlyn/pelican,ehashman/pelican,Rogdham/pelican,Scheirle/pelican,karlcow/pelican,sunzhongwei/pelican,rbarraud/pelican,deved69/pelican-1,iurisilvio/pelican,jimperio/pelican,farseerfc/pelican,number5/pelican,Scheirle/pelican,TC01/pelican,koobs/pelican,liyonghelpme/myBlog,TC01/pelican,deved69/pelican-1,btnpushnmunky/pelican,11craft/pelican,ehashman/pelican,joetboole/pelican,zackw/pelican,joetboole/pelican,ingwinlu/pelican,51itclub/pelican,alexras/pelican,iurisilvio/pelican,Scheirle/pelican,iKevinY/pelican,JeremyMorgan/pelican,koobs/pelican,florianjacob/pelican,treyhunner/pelican,UdeskDeveloper/pelican,Summonee/pelican,HyperGroups/pelican,Summonee/pelican,11craft/pelican,jo-tham/pelican,ls2uper/pelican,talha131/pelican,jimperio/pelican,jimperio/pelican,levanhien8/pelican,liyonghelpme/myBlog,11craft/pelican,liyonghelpme/myBlog,UdeskDeveloper/pelican,joetboole/pelican,levanhien8/pelican,lazycoder-ru/pelican,crmackay/pelican,goerz/pelican,deanishe/pelican,kennethlyn/pelican,HyperGroups/pelican,getpelican/pelican,liyonghelpme/myBlog,gymglish/pelican,simonjj/pelican,crmackay/pelican,lucasplus/pelican,gymglish/pelican,51itclub/pelican,ehashman/pelican,lazycoder-ru/pelican,garbas/pelican,zackw/pelican,Rogdham/pelican,eevee/pelican,sunzhongwei/pelican