mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
merges r29188 from trunk into ruby_1_9_2.
-- * ext/readline/readline.c (readline_s_get_line_buffer): Readline.line_buffer should return locale string. [ruby-dev:42184] #3791 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@29661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62dcfe959f
commit
13fdd22f20
4 changed files with 10 additions and 2 deletions
|
@ -420,7 +420,7 @@ readline_s_get_line_buffer(VALUE self)
|
|||
rb_secure(4);
|
||||
if (rl_line_buffer == NULL)
|
||||
return Qnil;
|
||||
return rb_tainted_str_new2(rl_line_buffer);
|
||||
return rb_locale_str_new_cstr(rl_line_buffer);
|
||||
}
|
||||
#else
|
||||
#define readline_s_get_line_buffer rb_f_notimplement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue