{"action":"opened","issue":{"url":"https://api.github.com/repos/cpavlina/bomtool/issues/3","labels_url":"https://api.github.com/repos/cpavlina/bomtool/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/cpavlina/bomtool/issues/3/comments","events_url":"https://api.github.com/repos/cpavlina/bomtool/issues/3/events","html_url":"https://github.com/cpavlina/bomtool/issues/3","id":93729425,"number":3,"title":"'# encoding: utf-8' required for Ruby 1.9","user":{"login":"mweyland","id":830795,"avatar_url":"https://avatars.githubusercontent.com/u/830795?v=3","gravatar_id":"","url":"https://api.github.com/users/mweyland","html_url":"https://github.com/mweyland","followers_url":"https://api.github.com/users/mweyland/followers","following_url":"https://api.github.com/users/mweyland/following{/other_user}","gists_url":"https://api.github.com/users/mweyland/gists{/gist_id}","starred_url":"https://api.github.com/users/mweyland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweyland/subscriptions","organizations_url":"https://api.github.com/users/mweyland/orgs","repos_url":"https://api.github.com/users/mweyland/repos","events_url":"https://api.github.com/users/mweyland/events{/privacy}","received_events_url":"https://api.github.com/users/mweyland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-08T08:17:53Z","updated_at":"2015-07-08T08:17:53Z","closed_at":null,"body":"Running revision a2996fb91ffcc54b847acff3c19f09ef08db957e on a current Linux Mint Rafaela 7.2 leads to the following error:\r\n\r\n```\r\n/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /usr/src/bomtool/lib/bomtool/exporter.rb:134: invalid multibyte char (US-ASCII) (SyntaxError)\r\n/usr/src/bomtool/lib/bomtool/exporter.rb:134: invalid multibyte char (US-ASCII)\r\n/usr/src/bomtool/lib/bomtool/exporter.rb:134: syntax error, unexpected $end, expecting keyword_end\r\n      value.gsub! '≤', '\\\\ensuremath{\\\\leq}'\r\n                     ^\r\n\tfrom /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'\r\n\tfrom /usr/src/bomtool/lib/bomtool.rb:4:in `<top (required)>'\r\n\tfrom /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'\r\n\tfrom /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'\r\n\tfrom ./bin/bomtool:3:in `<main>'\r\n```\r\nInserting `# encoding: utf-8` at the top of `exporter.rb` fixes this. My understanding is that this is only needed for Ruby versions below 2.0. I am not sure if `gem install magic_encoding` is needed for this to work."}}