Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: JRuby 1.1.4
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:using ubuntu 8.04
-
Number of attachments :
Description
###############################################################
#a simple rails controller , rails 2.0.2 and jruby 1.1.4
###############################################################
class TesterController < ApplicationController
require 'jcode'
def index(len=8)
chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a
guid = ""
1.upto(len)
render :text => guid
end
end
###############################################################
#am using jruby 1.1.4
#and am getting this error when i do require 'jcode' in line 2,
#but when removing it things goes ok....
#too short multibyte code string: #/[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]$/
#/home/khelll/projects/jruby/lib/ruby/1.8/jcode.rb:66:in `end_regexp'
#/home/khelll/projects/jruby/lib/ruby/1.8/jcode.rb:79:in `succ!'
#/home/khelll/projects/jruby/lib/ruby/1.8/jcode.rb:94:in `succ'
#app/controllers/tester_controller.rb:4:in `each'
#app/controllers/tester_controller.rb:4:in `index'
#:1:in `initialize'
###############################################################