Mon Sep 19 06:30:38 UTC 2005 Alberto Bertogli * Use UTF8 for plain output. Make the plain outputs use UTF8 too, as it's the only sane option. diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2016-01-05 14:40:57.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2016-01-05 14:40:57.000000000 +0000 @@ -362,7 +362,7 @@ print '' def print_plain_header(): - print "Content-type: text/plain\n" + print "Content-type: text/plain; charset=utf-8\n" # @@ -1038,7 +1038,7 @@ print_plain_header() dsrc = get_diff(phash) for l in dsrc: - sys.stdout.write(l) + sys.stdout.write(fixu8(l)) def do_darcs_commitdiff(phash): print_header() @@ -1091,7 +1091,7 @@ print_plain_header() dsrc = get_patch_headdiff(phash) for l in dsrc: - sys.stdout.write(l) + sys.stdout.write(fixu8(l)) def do_darcs_headdiff(phash): print_header() @@ -1143,7 +1143,7 @@ print_plain_header() dsrc = get_file_diff(phash, fname) for l in dsrc: - sys.stdout.write(l) + sys.stdout.write(fixu8(l)) def do_darcs_filediff(phash, fname): print_header() @@ -1191,7 +1191,7 @@ print_plain_header() dsrc = get_file_headdiff(phash, fname) for l in dsrc: - sys.stdout.write(l) + sys.stdout.write(fixu8(l)) def do_darcs_fileheaddiff(phash, fname): print_header() @@ -1447,7 +1447,7 @@ print_plain_header() f = open(config.repodir + '/_darcs/current/' + fname, 'r') for l in f: - sys.stdout.write(l) + sys.stdout.write(fixu8(l)) def do_annotate(fname, phash):