| OLD | NEW |
| 1 #!/usr/bin/perl -w | 1 #!/usr/bin/perl -wT |
| 2 | 2 |
| 3 # flush the buffers after each print | 3 # flush the buffers after each print |
| 4 select (STDOUT); | 4 select (STDOUT); |
| 5 $| = 1; | 5 $| = 1; |
| 6 | 6 |
| 7 print "Content-Type: text/html\n"; | 7 print "Content-Type: text/html\n"; |
| 8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\n"; | 8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\n"; |
| 9 print "Cache-Control: no-store, no-cache, must-revalidate\n"; | 9 print "Cache-Control: no-store, no-cache, must-revalidate\n"; |
| 10 print "Pragma: no-cache\n"; | 10 print "Pragma: no-cache\n"; |
| 11 print "\n"; | 11 print "\n"; |
| 12 | 12 |
| 13 print "\xef\xbb\xbf<body><p>Test for bug 10697: Errors in incremental decoding o
f UTF-8.</p>\n"; | 13 print "\xef\xbb\xbf<body><p>Test for bug 10697: Errors in incremental decoding o
f UTF-8.</p>\n"; |
| 14 print "<p>Should be a blank page (except for this description).</p>\n"; | 14 print "<p>Should be a blank page (except for this description).</p>\n"; |
| 15 print "<script>\n"; | 15 print "<script>\n"; |
| 16 print "if (window.testRunner)\n"; | 16 print "if (window.testRunner)\n"; |
| 17 print " testRunner.dumpAsText();\n"; | 17 print " testRunner.dumpAsText();\n"; |
| 18 print "</script>\n"; | 18 print "</script>\n"; |
| 19 | 19 |
| 20 # U+2003 = UTF-8 E28083 = EM SPACE | 20 # U+2003 = UTF-8 E28083 = EM SPACE |
| 21 print "\xe2"; | 21 print "\xe2"; |
| 22 for ($count=1; $count<4000; $count++) { | 22 for ($count=1; $count<4000; $count++) { |
| 23 print "\x80\x83\xe2"; | 23 print "\x80\x83\xe2"; |
| 24 } | 24 } |
| 25 print "\x80"; | 25 print "\x80"; |
| 26 for ($count=1; $count<4000; $count++) { | 26 for ($count=1; $count<4000; $count++) { |
| 27 print "\x83\xe2\x80"; | 27 print "\x83\xe2\x80"; |
| 28 } | 28 } |
| 29 print "\x83"; | 29 print "\x83"; |
| OLD | NEW |