summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-06 01:38:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-06 01:38:51 +0000
commit59f551635a6dfdb2ed5b84b275fdf8e4cdbf803f (patch)
treeb055928f11eff1091fb2715922ec4a565df146c6 /ext/readline
parenta69423beb8e9d827eb4cadda35b21586767d8737 (diff)
* 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/trunk@29188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index b654fa0..ac88c84 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -426,7 +426,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