#21 new
qoobaa

invalid byte sequence in US-ASCII on Ruby 1.9.1

Reported by qoobaa | September 4th, 2009 @ 11:43 AM

Sprockets is unusable on 1.9.1. Exception is thrown if JS file contains non US-ASCII chars in comments.

ArgumentError in SprocketsController#show

invalid byte sequence in US-ASCII

/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/source_line.rb:28:in `begins_pdoc_comment?'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/source_file.rb:19:in `block (2 levels) in source_lines'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/source_file.rb:16:in `each'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/source_file.rb:16:in `block in source_lines'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/source_file.rb:15:in `open'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/source_file.rb:15:in `source_lines'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/source_file.rb:37:in `each_source_line'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/preprocessor.rb:17:in `require'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/secretary.rb:42:in `block in add_source_files'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/secretary.rb:40:in `each'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/secretary.rb:40:in `add_source_files'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/secretary.rb:22:in `reset!'
/home/kuba/synergy-cv/vendor/gems/sprockets-1.0.2/lib/sprockets/secretary.rb:13:in `initialize'
/home/kuba/synergy-cv/vendor/plugins/sprockets-rails/lib/sprockets_application.rb:24:in `new'
/home/kuba/synergy-cv/vendor/plugins/sprockets-rails/lib/sprockets_application.rb:24:in `secretary'
/home/kuba/synergy-cv/vendor/plugins/sprockets-rails/lib/sprockets_application.rb:42:in `source_is_unchanged?'
/home/kuba/synergy-cv/vendor/plugins/sprockets-rails/lib/sprockets_application.rb:32:in `concatenation'
/home/kuba/synergy-cv/vendor/plugins/sprockets-rails/lib/sprockets_application.rb:11:in `source'
/home/kuba/synergy-cv/vendor/plugins/sprockets-rails/lib/sprockets_controller.rb:5:in `show'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `perform_action'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
/home/kuba/synergy-cv/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/usr/local/lib/ruby/1.9.1/benchmark.rb:309:in `realtime'
/home/kuba/synergy-cv/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in `perform_action_with_flash'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_with_filters'
/home/kuba/synergy-cv/vendor/gems/haml-2.2.3/lib/sass/plugin/rails.rb:19:in `process'
/home/kuba/synergy-cv/vendor/gems/chriseppstein-compass-0.8.14/lib/compass/app_integration/rails/action_controller.rb:7:in `process_with_compass'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
/home/kuba/synergy-cv/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in `call'

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

JavaScript dependency management and concatenation
<a href="http://getsprockets.org/">http://getsprockets.org/</a>

People watching this ticket

Attachments

Pages