Skip to content

Commit 6ef0dce

Browse files
committed
tune encoding version check to formally accept 2.0
origin: RUBY-15434
1 parent 802b46a commit 6ef0dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby-debug-ide/command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def timeout(sec)
118118
def debug_eval(str, b = get_binding)
119119
begin
120120
str = str.to_s
121-
str.force_encoding('UTF-8') if(RUBY_VERSION > '2.0')
121+
str.force_encoding('UTF-8') if(RUBY_VERSION >= '2.0')
122122
to_inspect = Command.unescape_incoming(str)
123123
max_time = Debugger.evaluation_timeout
124124
@printer.print_debug("Evaluating %s with timeout after %i sec", str, max_time)

0 commit comments

Comments
 (0)