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

ruby-changes:25394

From: kou <ko1@a...>
Date: Sat, 3 Nov 2012 14:43:37 +0900 (JST)
Subject: [ruby-changes:25394] kou:r37451 (trunk): * lib/rexml/output.rb (REXML::Output#initialize): Use normalized

kou	2012-11-03 14:43:28 +0900 (Sat, 03 Nov 2012)

  New Revision: 37451

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

  Log:
    * lib/rexml/output.rb (REXML::Output#initialize): Use normalized
      encoding name.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rexml/output.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37450)
+++ ChangeLog	(revision 37451)
@@ -1,3 +1,8 @@
+Sat Nov  3 14:42:55 2012  Kouhei Sutou  <kou@c...>
+
+	* lib/rexml/output.rb (REXML::Output#initialize): Use normalized
+	  encoding name.
+
 Sat Nov  3 14:41:17 2012  Kouhei Sutou  <kou@c...>
 
 	* lib/rexml/output.rb (REXML::Output): Don't output BOM in middle
Index: lib/rexml/output.rb
===================================================================
--- lib/rexml/output.rb	(revision 37450)
+++ lib/rexml/output.rb	(revision 37451)
@@ -10,7 +10,7 @@
       @output = real_IO
       self.encoding = encd
 
-      @to_utf = encd != 'UTF-8'
+      @to_utf = encoding != 'UTF-8'
 
       if encoding == "UTF-16"
         @output << "\ufeff".encode("UTF-16BE")

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

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