mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
* pack.c (pack_unpack): the resulted string of unpack('M') must have
ASCII-8BIT encoding (and ENC_CODERANGE_VALID). [ruby-core:34482] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2e9ec244e
commit
2dbf7d11f2
3 changed files with 8 additions and 1 deletions
|
@ -570,6 +570,8 @@ class TestPack < Test::Unit::TestCase
|
|||
assert_equal(["\x0a"], "=0A=\n".unpack("M"))
|
||||
assert_equal([""], "=0Z=\n".unpack("M"))
|
||||
assert_equal([""], "=\r\n".unpack("M"))
|
||||
assert_equal([""], "=\r\n".unpack("M"))
|
||||
assert_equal(["\xC6\xF7"], "=C6=F7".unpack('M*'))
|
||||
end
|
||||
|
||||
def test_pack_unpack_P2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue