[ruby-trunk - Bug #5671][Open] passing filename with multibyte character to File.chmod on windows
44898 _ wanabe <s.wanabe gmail.com> (2011-11-26 07:38:59 +0900) [ruby-trunk - Bug #5671][Open] windows でのマルチバイト文字列を含むファイルへの File.chmod
Issue #5671 has been reported by _ wanabe. ---------------------------------------- Bug #5671: http://redmine.ruby-lang.org/issues/5671 Author: _ wanabe Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: rubyinstaller 1.9.3-p0 In http://hibari.2ch.net/test/read.cgi/tech/1155031689/805-809 , someone reported that File.chmod does not work properly on Windows when the filename contains a character out of ASCII. The reporter points the line number to fix. Assuming it is 1.9.3-p0, probably we should use utf8_to_wstr instead of filecp_to_wstr in rb_w32_uchmod (I'm not completely sure about it becuase I have not tried, sorry.) -- http://redmine.ruby-lang.orgRefine translation
Issue #5671 has been reported by _ wanabe. Bug #5671: windows でのマルチバイト文字列を含むファイルへの File.chmod http://redmine.ruby-lang.org/issues/5671 Author: _ wanabe Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: rubyinstaller 1.9.3-p0 http://hibari.2ch.net/test/read.cgi/tech/1155031689/805-809 で言われていたのですが、Windows 環境で File.chmod に ASCII 範囲外の文字を含むファイル名を渡すと うまく動作しないようです。 報告された方が行番号で箇所を指摘なさっているので、1.9.3-p0 のソースだろうという憶測を仮定とすると rb_w32_uchmod で filecp_to_wstr でなく utf8_to_wstr を使うべき、ということではないでしょうか。 (試せていないので確実ではありません。すみません。) -- http://redmine.ruby-lang.org
45266 _ wanabe <s.wanabe gmail.com> (2012-02-21 22:23:17 +0900) [ruby-trunk - Bug #5671][Closed] windows でのマルチバイト文字列を含むファイルへの File.chmod
[Translation not available]Add translation
Issue #5671 has been updated by _ wanabe. Status changed from Open to Closed Assignee set to Usaku NAKAMURA r33873 で修正されていました。ありがとうございます。 チケットを放置してしまいすみませんでした。 ---------------------------------------- Bug #5671: windows でのマルチバイト文字列を含むファイルへの File.chmod https://bugs.ruby-lang.org/issues/5671 Author: _ wanabe Status: Closed Priority: Normal Assignee: Usaku NAKAMURA Category: Target version: ruby -v: rubyinstaller 1.9.3-p0 http://hibari.2ch.net/test/read.cgi/tech/1155031689/805-809 で言われていたのですが、Windows 環境で File.chmod に ASCII 範囲外の文字を含むファイル名を渡すと うまく動作しないようです。 報告された方が行番号で箇所を指摘なさっているので、1.9.3-p0 のソースだろうという憶測を仮定とすると rb_w32_uchmod で filecp_to_wstr でなく utf8_to_wstr を使うべき、ということではないでしょうか。 (試せていないので確実ではありません。すみません。) -- http://bugs.ruby-lang.org/