class FChange::Watcher
def normalize_path(path)
def normalize_path(path) if(path.size > 256) path = "\\\\?\\" + Pathname.new(path).realpath.to_s end require 'rchardet' require 'iconv' cd = CharDet.detect(path) encoding = cd['encoding'] converter = Iconv.new("UTF-16LE", encoding) converter.iconv(path) # path.encode!("UTF-16LE") end