changeset 33:844e2f9a037f draft

encoding encoding encoding!
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 03 Apr 2012 18:26:54 +0900
parents d23a2b3c456b
children 468c6e736117
files after5.rb
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Tue Apr 03 17:08:03 2012 +0900
+++ b/after5.rb	Tue Apr 03 18:26:54 2012 +0900
@@ -5,7 +5,7 @@
 # (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org]
 # $Id: after5.rb,v 1.19 2012/04/01 11:52:25 yuuji Exp yuuji $
 # $HGid$
-# Last modified Tue Apr  3 17:04:06 2012 on firestorm
+# Last modified Tue Apr  3 18:26:05 2012 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 
@@ -781,7 +781,8 @@
 	  if test(?s, f)
 	    ntl[user][date] = {}
 	    ntl[user][date]['file'] = f
-	    ntl[user][date]['text'] = IO.readlines(f)
+	    ntl[user][date]['text'] = 
+              IO.readlines(f).collect{|l| l.toeuc}	# ...why? :-(
 	  else
 	    File.unlink(f)	# symlink points to nonexistent file
 	  end

yatex.org