+
+ # Regression test for a bug in which we couldn't use an
+ # alphanumeric, but non-ASCII, root page.
+ $content = readfile('t/tmp/out/writable/中文/index.html');
+ like($content, qr{<input type="hidden" name="from" value="writable/中文"});
+ $content = run_cgi(method => 'get',
+ params => {
+ do => 'blog',
+ from => 'writable/中文',
+ subpage => '1',
+ title => 'hello',
+ },
+ );
+ like($content, qr{<option selected="selected" value="writable/中文/hello">writable/中文/hello</option>});
+ unlike($content, qr{Error: bad page name});