[前][次][番号順一覧][スレッド一覧]

ruby-changes:2649

From: ko1@a...
Date: 9 Dec 2007 02:42:12 +0900
Subject: [ruby-changes:2649] akr - Ruby:r14140 (trunk): add a test for concatinating euc-jp and ascii-8bit string.

akr	2007-12-09 02:41:47 +0900 (Sun, 09 Dec 2007)

  New Revision: 14140

  Modified files:
    trunk/bootstraptest/test_knownbug.rb

  Log:
    add a test for concatinating euc-jp and ascii-8bit string.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=14140&r2=14139

Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb	(revision 14139)
+++ bootstraptest/test_knownbug.rb	(revision 14140)
@@ -47,3 +47,12 @@
     :ng
   end
 }, '[ruby-dev:32452]'
+
+assert_equal 'ok', %q{
+  begin
+    "\xa1\xa1".force_encoding("euc-jp") + "\xa1".force_encoding("ascii-8bit")
+    :ng
+  rescue ArgumentError
+    :ok
+  end
+}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]