This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 120802

Summary: Support unicode language mode
Product: ruby Reporter: Martin Krauskopf <mkrauskopf>
Component: EditingAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 156473    
Bug Blocks:    

Description Martin Krauskopf 2007-11-01 13:57:44 UTC
Maybe I'm doing something wrong - some setting is missing, but I can't force the editor to not underline some lines as
errors.

====
# Be sure to run with the "-Ku" flag!
module Kernel
   alias λ proc

   def ∑(*args)
      sum = 0
      args.each { |e| sum += e }
      sum
   end

   def √(root)
      Math.sqrt(root)
   end
end

# A real lambda
λ { puts 'Hello' }.call

# Sigma - sum of all elements
puts ∑ (1, 2, 3)

# Square root
puts √ 49
====

Taken from http://www.oreillynet.com/ruby/blog/2007/10/fun_with_unicode.html
Comment 1 Torbjorn Norbye 2007-11-01 17:09:18 UTC
That program is invalid and will generate syntax errors, unless you invoke Ruby in a special mode (with -Ku).

As far as I understand, proper Unicode support is planned for Ruby 2.0.  I tried running the same program with JRuby +
-Ku but it doesn't seem to have an effect (-K isn't listed as a supported flag for the jruby interpreter) so there's
little we can do about this. 
Comment 2 kiol 2009-01-18 08:32:15 UTC
jruby 1.1.6 can support the unicode method name properly.
but netbeans 6.5 or 7.0 alpha1 using jruby 1.1.4.
do 7.0 will upgrade jruby to 1.1.6 and support the unicode method name?
Comment 3 Martin Krauskopf 2009-01-19 13:08:03 UTC
Yes, we are planning to upgrade to the newest JRuby after migration of old editor infrastructure to the new one. See
issue 156473.