mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_locale_str_new): new function to convert string
from locale to internal encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d4e0abcec9
commit
52b3e3b97f
3 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Oct 20 15:42:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_locale_str_new): new function to convert string
|
||||
from locale to internal encoding.
|
||||
|
||||
Mon Oct 20 09:47:13 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/runner.rb: search srcdir/test/arg at first to find test/ruby
|
||||
|
|
|
@ -547,6 +547,7 @@ VALUE rb_tainted_str_new_cstr(const char*);
|
|||
VALUE rb_tainted_str_new(const char*, long);
|
||||
VALUE rb_tainted_str_new2(const char*);
|
||||
VALUE rb_external_str_new(const char*, long);
|
||||
VALUE rb_locale_str_new(const char*, long);
|
||||
VALUE rb_str_buf_new(long);
|
||||
VALUE rb_str_buf_new_cstr(const char*);
|
||||
VALUE rb_str_buf_new2(const char*);
|
||||
|
|
6
string.c
6
string.c
|
@ -526,6 +526,12 @@ rb_external_str_new(const char *ptr, long len)
|
|||
return rb_external_str_new_with_enc(ptr, len, rb_default_external_encoding());
|
||||
}
|
||||
|
||||
VALUE
|
||||
rb_locale_str_new(const char *ptr, long len)
|
||||
{
|
||||
return rb_external_str_new_with_enc(ptr, len, rb_locale_encoding());
|
||||
}
|
||||
|
||||
static VALUE
|
||||
str_replace_shared(VALUE str2, VALUE str)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue