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

ruby-changes:28781

From: naruse <ko1@a...>
Date: Mon, 20 May 2013 00:44:57 +0900 (JST)
Subject: [ruby-changes:28781] naruse:r40833 (trunk): Default script encoding is now UTF-8

naruse	2013-05-20 00:44:09 +0900 (Mon, 20 May 2013)

  New Revision: 40833

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40833

  Log:
    Default script encoding is now UTF-8

  Modified files:
    trunk/test/ruby/envutil.rb

Index: test/ruby/envutil.rb
===================================================================
--- test/ruby/envutil.rb	(revision 40832)
+++ test/ruby/envutil.rb	(revision 40833)
@@ -162,7 +162,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L162
         code.sub!(/\A(?:\xef\xbb\xbf)?(\s*\#.*$)*(\n)?/n) {
           "#$&#{"\n" if $1 && !$2}BEGIN{throw tag, :ok}\n"
         }
-        code.force_encoding("us-ascii")
+        code.force_encoding(Encoding::UTF_8)
         verbose, $VERBOSE = $VERBOSE, nil
         yield if defined?(yield)
         case

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

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