Issue #6698 has been reported by imkira (Mario Freitas).

----------------------------------------
Bug #6698: MacOSX??с??Dir.glob???菴?????????<?ゃ???????絎鴻??UTF8-MAC??с?????encoding???UTF-8????c??????
https://bugs.ruby-lang.org/issues/6698

Author: imkira (Mario Freitas)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-08-02 revision 32803) [x86_64-darwin10.8.0]


MacOSX??с???????????????????鴻?????障??????????????<?ゃ??????Dir.glob??ц??鴻????????c?????encoding???????????c??????????????с?????

=begin
(({Dir.glob('*.{jpg,png}') do |filename|
 puts "#{filename} #{filename.encoding}" 
end
}))

?????????????????????<?ゃ??????UTF-8???????encoding???篏帥?c??"\u305F\u3099"??????c?????障?????

茵腓??????"\u305F\u3099"???"\u3060"????莠?????????医???????????????с??????????????????????????encoding????c????????????綵???倶??莠???紊????????障?????

Dir.glob???菴???????filename???筝?荐?????????????????罩e幻???莠??????堺?ャ???????????????障?????

(({filename = filename.force_encoding("UTF8-MAC").encode("UTF-8")}))

????????c???Dir.glob??????桁????с???????????????罩c?????????????с?????鐚?


-- 
http://bugs.ruby-lang.org/