Comments
Patch
@@ -6232,6 +6232,8 @@
if opts["cmdserver"]:
service = commandserver.createservice(ui, repo, opts)
else:
+ if not "encoding" in opts:
+ encoding.encoding = 'UTF-8'
service = hgweb.createservice(ui, repo, opts)
return cmdutil.service(opts, initfn=service.init, runfn=service.run)
@@ -61,7 +61,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'log/?style=atom'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<!-- Changelog -->
<id>http://*:$HGPORT/</id> (glob)
@@ -247,7 +247,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'log/?style=rss'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<link>http://*:$HGPORT/</link> (glob)
@@ -421,7 +421,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/?style=atom'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<!-- Changelog -->
<id>http://*:$HGPORT/</id> (glob)
@@ -521,7 +521,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/?style=rss'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<link>http://*:$HGPORT/</link> (glob)
@@ -615,7 +615,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/foo/?style=atom'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>http://*:$HGPORT/atom-log/tip/foo</id> (glob)
<link rel="self" href="http://*:$HGPORT/atom-log/tip/foo"/> (glob)
@@ -670,7 +670,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/foo/?style=rss'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<link>http://*:$HGPORT/</link> (glob)
@@ -1501,7 +1501,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'summary/?style=gitweb'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
@@ -1700,7 +1700,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'graph/?style=gitweb'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
@@ -385,7 +385,7 @@
$ get-with-headers.py 127.0.0.1:$HGPORT 'file?style=gitweb'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
@@ -773,7 +773,7 @@
$ (get-with-headers.py localhost:$HGPORT 'rss-log/tip/a')
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<link>http://*:$HGPORT/</link> (glob)
@@ -804,7 +804,7 @@
$ (get-with-headers.py localhost:$HGPORT 'atom-log/tip/a')
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>http://*:$HGPORT/atom-log/tip/a</id> (glob)
<link rel="self" href="http://*:$HGPORT/atom-log/tip/a"/> (glob)
@@ -44,7 +44,7 @@
$ cat getoutput.txt
200 Script output follows
- content-type: text/plain; charset="ascii"
+ content-type: text/plain; charset="UTF-8"
content-length: 157
content-disposition: inline; filename="some text%.txt"
@@ -746,7 +746,7 @@
$ get-with-headers.py localhost:$HGPORT1 't/a?style=atom'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<!-- Changelog -->
<id>http://*:$HGPORT1/t/a/</id> (glob)
@@ -803,7 +803,7 @@
$ get-with-headers.py localhost:$HGPORT1 't/a/?style=atom'
200 Script output follows
- <?xml version="1.0" encoding="ascii"?>
+ <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<!-- Changelog -->
<id>http://*:$HGPORT1/t/a/</id> (glob)