changeset 26:a3719c56696b draft

Ruby19 hack...
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 03 Apr 2012 14:45:43 +0900
parents eab5481212e0
children 96eb1aea0517
files after5.rb
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Sun Apr 01 22:13:40 2012 +0900
+++ b/after5.rb	Tue Apr 03 14:45:43 2012 +0900
@@ -3,9 +3,9 @@
 #
 # Associative Scheduling Table - after5
 # (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org]
-# $Id: after5.rb,v 1.18 2012/04/01 05:18:57 yuuji Exp yuuji $
+# $Id: after5.rb,v 1.19 2012/04/01 11:52:25 yuuji Exp yuuji $
 # $HGid$
-# Last modified Sun Apr  1 20:47:49 2012 on firestorm
+# Last modified Tue Apr  3 14:44:53 2012 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 
@@ -3273,6 +3273,7 @@
     return unless test(?s, cf)
     begin
       IO.foreach(cf){|line|
+        line = line.toeuc
 	next if /^\s *#/ =~ line
 	line.chop!
 	line.sub!(/^\s*#.*/, '')
@@ -3291,7 +3292,7 @@
 	end
       }
     rescue
-      STDERR.print "Configuration file %s not readable\n", cf
+      STDERR.printf("Configuration file %s not readable\n", cf)
     end
   end
 

yatex.org