Skip to content

"# encoding: utf-8" header raises an exception in debugger #2

@alexbix

Description

@alexbix

I'm running:
- Ubuntu 10.04
- NetBeans IDE 6.9
- ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] compiled from sources
- and the following gems:
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
archive-tar-minitar (0.5.2)
columnize (0.3.1)
linecache19 (0.5.11)
rack (1.2.1, 1.1.0)
rails (2.3.8)
rake (0.8.7)
ruby-debug-base19 (0.11.23)
ruby-debug-ide19 (0.4.12)
ruby_core_source (0.1.4)
rubygems-update (1.3.7)

Adding "# encoding: utf-8" at the top of the .rb file allows me to use non ASCII characters in the code, which runs smoothly. Unfortunately, the debugger raises the following exception:

Fast Debugger (ruby-debug-ide 0.4.9) listens on :57854
        /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_load'
        /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_program'
        /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:87:in `<top (required)>'
        /usr/local/bin/rdebug-ide:19:in `load'
        /usr/local/bin/rdebug-ide:19:in `<main>'
Uncaught exception: /home/alex/NetBeansProjects/RubyApplication1/lib/main.rb:94: invalid multibyte char (US-ASCII)
/home/alex/NetBeansProjects/RubyApplication1/lib/main.rb:94: invalid multibyte char (US-ASCII)
/home/alex/NetBeansProjects/RubyApplication1/lib/main.rb:94: syntax error, unexpected $end, expecting keyword_end
  puts "L'utente non è autorizzato!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions