summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:27:00 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:27:00 +0000
commitbcc6561df8e2fdf97bbcb7194e2e36f80183d6be (patch)
tree2893a1cd2a585b0cb777a28f82d762d85042cc91 /test/ruby/test_array.rb
parent56dccab73e3ed71ea203285994a2594105608016 (diff)
downloadruby-bcc6561df8e2fdf97bbcb7194e2e36f80183d6be.tar.gz
ruby-bcc6561df8e2fdf97bbcb7194e2e36f80183d6be.tar.xz
ruby-bcc6561df8e2fdf97bbcb7194e2e36f80183d6be.zip
merged r20021 and r20022 from trunk into ruby_1_9_1.
* pack.c (pack_pack): set encoding from packing string and UTF-8 for "U". [ruby-core:19590] * test/ruby/test_array.rb (test_pack): use utf-8. * test/ruby/test_pack.rb (test_pack_U): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r--test/ruby/test_array.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index f3ee624bf..fcc493951 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -888,7 +888,7 @@ class TestArray < Test::Unit::TestCase
assert_equal("aGVsbG8K\n", @cls["hello\n"].pack("m"))
assert_equal(",:&5L;&\\*:&5L;&\\*\n", @cls["hello\nhello\n"].pack("u"))
- assert_equal("\xc2\xa9B\xe2\x89\xa0", @cls[0xa9, 0x42, 0x2260].pack("U*"))
+ assert_equal("\u{a9 42 2260}", @cls[0xa9, 0x42, 0x2260].pack("U*"))
format = "c2x5CCxsdils_l_a6";