diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-29 14:57:04 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-29 14:57:04 +0000 |
commit | a7862b65c945650dced50e593485b2f9a8250ad8 (patch) | |
tree | d6f7576aa18de39832d6f4c34da537a0188cdf90 /string.c | |
parent | 88d156a8cad2915d9af1cf57b8eb03be70dd826f (diff) | |
download | ruby-a7862b65c945650dced50e593485b2f9a8250ad8.tar.gz ruby-a7862b65c945650dced50e593485b2f9a8250ad8.tar.xz ruby-a7862b65c945650dced50e593485b2f9a8250ad8.zip |
* test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_chomp): test
updated.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5357,11 +5357,11 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str) if (rslen == 1 && newline == '\n') goto smart_chomp; + enc = rb_enc_check(str, rs); if (is_broken_string(rs)) { return Qnil; } pp = e - rslen; - enc = rb_enc_check(str, rs); if (p[len-1] == newline && (rslen <= 1 || memcmp(RSTRING_PTR(rs), pp, rslen) == 0)) { |