KanonConductor

changeset 19:d0c076e3d9d7

fixed broken setdefaultencoding with virtualenv.
author chris
date Tue, 22 Mar 2011 12:00:52 +0900
parents 7bde3e4003ed
children 01409f885018 5d5ccaa9176f
files opt/kanon/lib/cgi-bin/trac.wsgi
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/opt/kanon/lib/cgi-bin/trac.wsgi	Sat Mar 19 08:53:50 2011 +0900
     1.2 +++ b/opt/kanon/lib/cgi-bin/trac.wsgi	Tue Mar 22 12:00:52 2011 +0900
     1.3 @@ -15,6 +15,9 @@
     1.4  #
     1.5  # Author: Noah Kantrowitz <noah@coderanger.net>
     1.6  import os
     1.7 +import sys
     1.8 +reload(sys)
     1.9 +sys.setdefaultencoding("utf-8")
    1.10  
    1.11  def application(environ, start_request):
    1.12      if not 'trac.env_parent_dir' in environ: