From bcc6561df8e2fdf97bbcb7194e2e36f80183d6be Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 29 Oct 2008 16:27:00 +0000 Subject: 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 --- test/ruby/test_array.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_array.rb') 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"; -- cgit