johnbintz/jasmine-headless-webkit — Issue #100: Incorrect encoding issue on beautify-html.js
Author: johnbintz
Created: 2011-12-23 15:10:33+00:00
State: open

Today's fun fact: if you're running jasmine-headless-webkit through
multi-term.el in Aquamacs (native port of Emacs to Mac OS X), you
might see the following error:
duncan$ bundle exec jasmine-headless-webkit
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53:
warning: already initialized constant WFKV_
[jasmine-headless-webkit]
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/bundler/gems/jasmine-headless-webkit-00468fc1b3b7/vendor/assets/javascripts/beautify-html.js
has a invalid US-ASCII byte sequence (Sprockets::EncodingError)

/Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/sprockets-2.0.1/lib/sprockets/utils.rb:18:in
`block in read_unicode'
This is because multi-term doesn't load all the normal Bash config
files on OSX (why????). The fix is:
duncan$ export LANG=en_AU.UTF-8 duncan$ be
jasmine-headless-webkit
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53:
warning: already initialized constant WFKV_
Running Jasmine specs... .............. PASS: 14 tests, 0
failures, 0.038 secs. Test ordering seed: --seed 1857