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

ruby-changes:34942

From: On <ko1@a...>
Date: Fri, 1 Aug 2014 16:37:59 +0900 (JST)
Subject: [ruby-changes:34942] Re: nobu:r46948 (trunk): fix encoding spec

On 2014/07/25 16:55, nobu@r... wrote:
> nobu	2014-07-25 16:55:58 +0900 (Fri, 25 Jul 2014)
>
>    New Revision: 46948
>
>    http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46948
>
>    Log:
>      fix encoding spec
>
>      "UTF-8" is invalid encoding name in Emacs, use "utf-8" instead.

Hello Nobu,

To me, this looks like a bug in Emacs, not something Ruby should have to 
deal with.

Regards,    Martin.

>    Modified files:
>      trunk/lib/erb.rb
>      trunk/test/erb/test_erb_m17n.rb
>      trunk/test/psych/test_yamldbm.rb
>      trunk/test/rubygems/test_gem_specification.rb
>
Index: lib/erb.rb
===================================================================
--- lib/erb.rb	(revision 46947)
+++ lib/erb.rb	(revision 46948)
@@ -68,7 +68,7 @@ require "cgi/util" https://github.com/ruby/ruby/blob/trunk/lib/erb.rb#L68
 # a magic comment, however, it returns a string in the encoding specified
 # by the magic comment.
 #
-#   # -*- coding: UTF-8 -*-
+#   # -*- coding: utf-8 -*-
 #   require 'erb'
 #
 #   template = ERB.new <<EOF
Index: test/rubygems/test_gem_specification.rb
===================================================================
--- test/rubygems/test_gem_specification.rb	(revision 46947)
+++ test/rubygems/test_gem_specification.rb	(revision 46948)
@@ -1,4 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L1
-# -*- coding: UTF-8 -*-
 require 'rubygems/test_case'
 require 'pathname'
 require 'stringio'
Index: test/erb/test_erb_m17n.rb
===================================================================
--- test/erb/test_erb_m17n.rb	(revision 46947)
+++ test/erb/test_erb_m17n.rb	(revision 46948)
@@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/test/erb/test_erb_m17n.rb#L1
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
 require 'test/unit'
 require 'erb'
 
Index: test/psych/test_yamldbm.rb
===================================================================
--- test/psych/test_yamldbm.rb	(revision 46947)
+++ test/psych/test_yamldbm.rb	(revision 46948)
@@ -1,5 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/test/psych/test_yamldbm.rb#L1
-# -*- coding: UTF-8 -*-
-
 require_relative 'helper'
 require 'tmpdir'
 

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

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