diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-07 21:42:24 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-07 21:42:24 +0000 |
| commit | 66f96e9c6520fd3e76ef9925d3f27ec50b18cc4b (patch) | |
| tree | 37c2ea24a1227676244ccdededbcb2c4b0ba1307 /string.c | |
| parent | 7dc192a5a454d5f977d69f86dd656965dcb05a95 (diff) | |
| download | ruby-66f96e9c6520fd3e76ef9925d3f27ec50b18cc4b.tar.gz ruby-66f96e9c6520fd3e76ef9925d3f27ec50b18cc4b.tar.xz ruby-66f96e9c6520fd3e76ef9925d3f27ec50b18cc4b.zip | |
* ext/curses/curses.c: curses encoding should obey locale.
* ext/curses/curses.c (curses_getch): 1.9 getch should return one
character string for single byte string. wchar_t support may
follow in the future.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -571,6 +571,12 @@ rb_str_export(VALUE str) } VALUE +rb_str_export_locale(VALUE str) +{ + return rb_str_conv_enc(str, STR_ENC_GET(str), rb_locale_encoding()); +} + +VALUE rb_str_export_to_enc(VALUE str, rb_encoding *enc) { return rb_str_conv_enc(str, STR_ENC_GET(str), enc); |
