changeset 96:65024f29b497 draft

Filename escaping should not work on upper letters.
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 21 Jun 2017 10:24:13 +0859
parents 4c6561489602
children c0e61052aa37
files after5.rb
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Sat Apr 29 09:25:30 2017 +0859
+++ b/after5.rb	Wed Jun 21 10:24:13 2017 +0859
@@ -4,7 +4,7 @@
 # Associative Scheduling Table - after5
 # (C)2003, 2004, 2006, 2008, 2012-2014 by HIROSE Yuuji [yuuji<at>gentei.org]
 # $Id: after5.rb,v 1.20 2012/12/03 15:54:20 yuuji Exp $
-# Last modified Sat Apr 29 09:24:49 2017 on firestorm
+# Last modified Wed Jun 21 10:23:42 2017 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 $hgid = <<_HGID_.split[1..-2].join(" ")
@@ -2878,7 +2878,7 @@
                  end
                  :
                  basename
-                 ).gsub(/([^-_0-9a-z=,.@])/){"~"+$1.unpack("H*")[0].to_s}
+                 ).gsub(/([^-_0-9a-z=,.@])/i){"~"+$1.unpack("H*")[0].to_s}
       filename = safecopy(dir+"/"+encname)
       umask = File.umask(022)
       sz = a['value'].bytesize

yatex.org