summaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-26 20:17:52 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-26 20:17:52 +0000
commit3913db4506802d3798d7e974ff49f1415a92b67d (patch)
tree9966103e7f2ebf0a729468562094e40af3e6f37e /vm_method.c
parente507e51c6511fad495c7826830d6474730ff2d15 (diff)
downloadruby-3913db4506802d3798d7e974ff49f1415a92b67d.tar.gz
ruby-3913db4506802d3798d7e974ff49f1415a92b67d.tar.xz
ruby-3913db4506802d3798d7e974ff49f1415a92b67d.zip
String#inspect's encoding should be fixed.
* string.c (rb_str_inspect): result's encoding should be fixed. If default_internal is not nil, the encoding is default_internal. Else if default_external is not nil, the encoding is default_external. But the encoding is not ASCII-compatible, the encoding is replaced by US-ASCII. Characters in ASCII-incompatible encoding or non ASCII characters in other than the encoding will be \xXX escaped. * string.c (str_buf_cat2): defined. * string.c (prefix_escape): removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
0 files changed, 0 insertions, 0 deletions