1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/webrick
Kazuhiro NISHIYAMA 640e6c9be6
Use section sign instead of Hiragana Letter A
It can convert to Windows-1252and Windows-31J.

```
"\u00a7".encode("Windows-1252") #=> "\xA7"
"\u00a7".encode("Windows-31J")  #=> "\x{8198}"
```

https://github.com/ruby/ruby/runs/788357527?check_suite_focus=true#step:14:959
```
  1) Failure:
WEBrick::TestFileHandler#test_cjk_in_path [D:/a/ruby/ruby/src/test/webrick/utils.rb:72]:
exceptions on 2 threads:
webrick log start:
  [2020-06-19 14:49:38] ERROR Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and Windows-1252
  	D:/a/ruby/ruby/src/lib/webrick/httpservlet/filehandler.rb:341:in `+'
  	D:/a/ruby/ruby/src/lib/webrick/httpservlet/filehandler.rb:341:in `set_filename'
  	D:/a/ruby/ruby/src/lib/webrick/httpservlet/filehandler.rb:310:in `exec_handler'
  	D:/a/ruby/ruby/src/lib/webrick/httpservlet/filehandler.rb:245:in `do_GET'
  	D:/a/ruby/ruby/src/lib/webrick/httpservlet/abstract.rb:105:in `service'
  	D:/a/ruby/ruby/src/lib/webrick/httpservlet/filehandler.rb:241:in `service'
  	D:/a/ruby/ruby/src/lib/webrick/httpserver.rb:140:in `service'
  	D:/a/ruby/ruby/src/lib/webrick/httpserver.rb:96:in `run'
  	D:/a/ruby/ruby/src/lib/webrick/server.rb:307:in `block in start_thread'
```
2020-06-20 00:17:07 +09:00
..
.htaccess
test_cgi.rb
test_config.rb
test_cookie.rb
test_do_not_reverse_lookup.rb
test_filehandler.rb Use section sign instead of Hiragana Letter A 2020-06-20 00:17:07 +09:00
test_htgroup.rb
test_htmlutils.rb
test_httpauth.rb
test_httpproxy.rb
test_httprequest.rb [ruby/webrick] Support literal IPv6 addresses in X-Forwarded-Host 2019-10-24 19:47:20 +09:00
test_httpresponse.rb test/webrick/test_httpresponse.rb: Use a longer indicator for crack 2020-06-19 00:57:18 +09:00
test_https.rb
test_httpserver.rb
test_httpstatus.rb
test_httputils.rb
test_httpversion.rb
test_server.rb
test_ssl_server.rb
test_utils.rb
utils.rb [ruby/webrick] Allow WEBrick::HTTPServlet::CGIHandler :CGIInterpreter option to be array 2019-11-30 17:48:15 +09:00
webrick.cgi
webrick.rhtml
webrick_long_filename.cgi