Project

General

Profile

« Previous | Next » 

Revision 4f3ed07d

Added by nagachika (Tomoyuki Chikanaga) about 1 year ago

merge revision(s) ade56737e2273847426214035c0ff2340b43799a: [Backport #20190]

    Fix coderange of invalid_encoding_string.<<(ord)

    Appending valid encoding character can change coderange from invalid to valid.
    Example: "\x95".force_encoding('sjis')<<0x5C will be a valid string "\x{955C}"
    ---
     string.c                 | 6 +++++-
     test/ruby/test_string.rb | 3 +++
     2 files changed, 8 insertions(+), 1 deletion(-)