mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby-trunk.
* lib/irb/ruby-lex.rb (RubyLex#buf_input): use chars.to_a. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
086e5b1a63
commit
4a9d407e35
3 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Jan 27 16:03:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/irb/ruby-lex.rb (RubyLex#buf_input): use chars.to_a.
|
||||||
|
|
||||||
Sun Jan 27 16:27:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
Sun Jan 27 16:27:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/nkf/nkt-utf8: update nkf.
|
* ext/nkf/nkt-utf8: update nkf.
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,7 @@ rb_nkf_convert(VALUE obj, VALUE opt, VALUE src)
|
||||||
reinit();
|
reinit();
|
||||||
StringValue(opt);
|
StringValue(opt);
|
||||||
nkf_split_options(RSTRING_PTR(opt));
|
nkf_split_options(RSTRING_PTR(opt));
|
||||||
|
if (!output_encoding) rb_raise(rb_eArgError, "no output encoding given");
|
||||||
|
|
||||||
incsize = INCSIZE;
|
incsize = INCSIZE;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ class RubyLex
|
||||||
prompt
|
prompt
|
||||||
line = @input.call
|
line = @input.call
|
||||||
return nil unless line
|
return nil unless line
|
||||||
@rests.concat line.split(//)
|
@rests.concat line.chars.to_a
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
private :buf_input
|
private :buf_input
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue