diff tests/test-hgweb-commands @ 11766:a65ea28269ef

Merge with stable
author Patrick Mezard <pmezard@gmail.com>
date Sun, 08 Aug 2010 22:29:39 +0200
parents 1af96b090116 aff419e260f9
children
line wrap: on
line diff
--- a/tests/test-hgweb-commands	Sat Aug 07 16:13:53 2010 -0300
+++ b/tests/test-hgweb-commands	Sun Aug 08 22:29:39 2010 +0200
@@ -60,5 +60,19 @@
 echo % Static files
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/static/style.css'
 
+echo % Stop and restart with HGENCODING=cp932
+"$TESTDIR/killdaemons.py"
+HGENCODING=cp932 hg serve --config server.uncompressed=False -n test \
+    -p $HGPORT -d --pid-file=hg.pid -E errors.log
+cat hg.pid >> $DAEMON_PIDS
+
+# commit message with Japanese Kanji 'Noh', which ends with '\x5c'
+echo foo >> foo
+HGENCODING=cp932 hg ci -m `python -c 'print("\x94\x5c")'`
+
+echo % Graph json escape of multibyte character
+"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/' \
+    | grep '^var data ='
+
 echo % ERRORS ENCOUNTERED
 cat errors.log