1
本来这个bug发布在这里:https://rails.lighthouseapp.com/projects/8994/tickets/5713-ruby-19-ku-incompatible-with-mem_cache_store 现在,当我们遇到同样的问题时,我会在这里复制一个问题,希望有人有答案已经: 当Ruby 1.9的在Unicode模式(-ku)开始,mem_cache_store.rb无法解析:Ruby 1.9 -Ku,mem_cache_store和无效的多字节转义错误
/usr/local/ruby19/bin/ruby -Ku /usr/local/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/
activesupport-3.0.0/lib/active_support/cache/mem_cache_store.rb
/usr/local/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/
cache/mem_cache_store.rb:32: invalid multibyte escape: /[\x00-\x20%\x7F-\xFF]/
我们的情况是几乎相同的:当你设置config.action_controller.cache_store到:mem_cache_store,并尝试运行测试,控制台或服务器,您将收到此回报:
/Users/%username%/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.1/lib/active_support/
cache/mem_cache_store.rb:32: invalid multibyte escape: /[\x00-\x20%\x7F-\xFF]/
任何想法,这可怎么避免?..