KanonConductor

changeset 21:5d5ccaa9176f

fixed broken mulibytecharacters in hgweb.
author Takashi Okamoto <toraneko at gmail.com>
date Wed, 23 Mar 2011 08:14:22 +0900
parents d0c076e3d9d7
children 03d5ce449e9f
files opt/kanon/lib/cgi-bin/hgweb.wsgi
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/opt/kanon/lib/cgi-bin/hgweb.wsgi	Tue Mar 22 12:00:52 2011 +0900
     1.2 +++ b/opt/kanon/lib/cgi-bin/hgweb.wsgi	Wed Mar 23 08:14:22 2011 +0900
     1.3 @@ -5,6 +5,9 @@
     1.4  config = "/etc/opt/kanon/hgweb.config"
     1.5  
     1.6  import os
     1.7 +import sys
     1.8 +reload(sys)
     1.9 +sys.setdefaultencoding("utf-8")
    1.10  os.environ["HGENCODING"] = "UTF-8"
    1.11  
    1.12  # Uncomment and adjust if Mercurial is not installed system-wide: