summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-25 07:55:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-25 07:55:58 +0000
commit861b7d781eb4e1d0eb2b3862bcf48e0cfc564a40 (patch)
tree1240155664facee268d1324ab4b2050489912b90
parentad989e5521172a9e51f7cbc1b568faf500bdcf24 (diff)
fix encoding spec
"UTF-8" is invalid encoding name in Emacs, use "utf-8" instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/erb.rb2
-rw-r--r--test/erb/test_erb_m17n.rb2
-rw-r--r--test/psych/test_yamldbm.rb2
-rw-r--r--test/rubygems/test_gem_specification.rb1
4 files changed, 2 insertions, 5 deletions
diff --git a/lib/erb.rb b/lib/erb.rb
index 3c3cabe209a..9c321312883 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -68,7 +68,7 @@ require "cgi/util"
# 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
diff --git a/test/erb/test_erb_m17n.rb b/test/erb/test_erb_m17n.rb
index ff49228c265..f60dd103f61 100644
--- a/test/erb/test_erb_m17n.rb
+++ b/test/erb/test_erb_m17n.rb
@@ -1,4 +1,4 @@
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
require 'test/unit'
require 'erb'
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb
index 23c7c9e5644..785365841ed 100644
--- a/test/psych/test_yamldbm.rb
+++ b/test/psych/test_yamldbm.rb
@@ -1,5 +1,3 @@
-# -*- coding: UTF-8 -*-
-
require_relative 'helper'
require 'tmpdir'
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 1afb5ba247c..e1c6a1b5495 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1,4 +1,3 @@
-# -*- coding: UTF-8 -*-
require 'rubygems/test_case'
require 'pathname'
require 'stringio'