diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-03-24 01:42:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-09-20 16:23:55 +0900 |
commit | 75a8c937e75a0b57fbdbc3d72a2429f5799a42e4 (patch) | |
tree | 23699b544bf4fe35d2a22f3ad9f83f1b1f36856e /test | |
parent | 546f13fded6481e89c8e1f8a9f85d2ccd167f4d7 (diff) |
[Bug #18651] Pass undefined region in CP51932 as is to CP50220
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5696
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_transcode.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb index 144f4d83a1..63d37f4ba4 100644 --- a/test/ruby/test_transcode.rb +++ b/test/ruby/test_transcode.rb @@ -1634,6 +1634,8 @@ class TestTranscode < Test::Unit::TestCase assert_equal("\e$B%*!+%,%I%J!+%N!+%P%\\%^!+%Q%]%\"\e(B".force_encoding("cp50220"), "\xB5\xDE\xB6\xDE\xC4\xDE\xC5\xDE\xC9\xDE\xCA\xDE\xCE\xDE\xCF\xDE\xCA\xDF\xCE\xDF\xB1". encode("cp50220", "sjis")) + assert_equal("\e$B\x21\x23\e(I\x7E\e(B".force_encoding("cp50220"), + "\x8E\xA1\x8E\xFE".encode("cp50220", "cp51932")) end def test_iso_2022_jp_1 |