Fri Feb 24 01:37:00 UTC 2006 Alberto Bertogli * Fix repoencoding, this time for real (I hope). diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2013-08-04 00:05:07.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2013-08-04 00:05:07.000000000 +0000 @@ -2185,12 +2185,7 @@ repodir = rdir repodesc = desc repourl = url - - # repoencoding must be a tuple - if isinstance(c.repoencoding, str): - repoencoding = (c.repoencoding, ) - else: - repoencoding = c.repoencoding + repoencoding = c.repoencoding if 'footer' in dir(c): footer = c.footer @@ -2229,7 +2224,11 @@ config.repodesc = c.repodesc config.repodir = c.repodir config.repourl = c.repourl - config.repoencoding = c.repoencoding + # repoencoding must be a tuple + if isinstance(c.repoencoding, str): + config.repoencoding = (c.repoencoding, ) + else: + config.repoencoding = c.repoencoding # optional parameters if "darcspath" in dir(base):