summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-06 00:49:57 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-06 00:49:57 +0000
commit58ef0f06c6f6fcc4f6a0d31ade430d87ef9d968d (patch)
tree093a990de85f3b383db90c2c9d82c66bc98f63a1 /lib
parentc9fc6b08ae515a22293a4a44fe1f0d8452b88183 (diff)
* ruby.c (load_file_internal): set default source encoding as
UTF-8 instead of US-ASCII. [ruby-core:46021] [Feature #6679] * parse.y (parser_initialize): set default parser encoding as UTF-8 instead of US-ASCII. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rexml/encoding.rb1
-rw-r--r--lib/rexml/source.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/rexml/encoding.rb b/lib/rexml/encoding.rb
index 2863af9147..1c7e79a124 100644
--- a/lib/rexml/encoding.rb
+++ b/lib/rexml/encoding.rb
@@ -1,3 +1,4 @@
+# coding: US-ASCII
module REXML
module Encoding
# ID ---> Encoding name
diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb
index eec1b6c7e8..b653714b2f 100644
--- a/lib/rexml/source.rb
+++ b/lib/rexml/source.rb
@@ -1,3 +1,4 @@
+# coding: US-ASCII
require 'rexml/encoding'
module REXML