lib/big_keeper/util/cache_operator.rb in bigkeeper-0.9.8 vs lib/big_keeper/util/cache_operator.rb in bigkeeper-0.9.9
- old
+ new
@@ -31,10 +31,10 @@
FileUtils.mkdir_p(@cache_path) unless File.exist?(@cache_path)
if File.exist?("#{@cache_path}/module.cache")
file = File.open("#{@cache_path}/module.cache", 'r')
- @modules = JSON.load(file.read())
+ @modules = JSON.load(file.read(), :encoding => 'UTF-8')
file.close
else
@modules = {"git" => {"all" => [], "current" => []}, "path" => {"all" => [], "add" => [], "del" => [], "current" => []}}
end
end