From: sevkme@... Date: 2020-04-09T01:56:16+00:00 Subject: [ruby-core:97760] [Ruby master Bug#16753] ruby -run -e httpd . -p 8080 , not support CJK directorys . Issue #16753 has been updated by sevk (kk kk). znz (Kazuhiro NISHIYAMA) wrote in #note-2: > https://github.com/ruby/ruby/pull/2998 ``` diff --- filehandler.rb.old 2020-04-09 09:49:57.536780938 +0800 +++ filehandler.rb 2020-04-09 09:51:07.854878036 +0800 @@ -520,6 +520,7 @@ s = "#{HTMLUtils::escape(dname)}" s << "" << (time ? time.strftime("%Y/%m/%d %H:%M") : "") << "" s << "" << (size >= 0 ? size.to_s : "-") << "\n" + s.force_encoding 'ASCII_8BIT' res.body << s } res.body << "" ``` ---------------------------------------- Bug #16753: ruby -run -e httpd . -p 8080 , not support CJK directorys . https://bugs.ruby-lang.org/issues/16753#change-84971 * Author: sevk (kk kk) * Status: Open * Priority: Normal * ruby -v: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- httpd not support CJK directorys . -- https://bugs.ruby-lang.org/ Unsubscribe: