aboutsummaryrefslogtreecommitdiffstats
path: root/enc/unicode
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-24 00:23:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-24 00:23:46 +0000
commita7ad43e57b2a40442f324798b333e846358ffca5 (patch)
tree44a514e8de1165ee4d84677a4d6d254c088dcca4 /enc/unicode
parentc7267bb12797a26790af227310a145e4739b7918 (diff)
downloadruby-a7ad43e57b2a40442f324798b333e846358ffca5.tar.gz
touch
* enc/unicode/case-folding.rb: touch the destination file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode')
-rwxr-xr-xenc/unicode/case-folding.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb
index f6aff0b321..6a67d4f483 100755
--- a/enc/unicode/case-folding.rb
+++ b/enc/unicode/case-folding.rb
@@ -370,7 +370,9 @@ if $0 == __FILE__
rescue Errno::ENOENT => e
raise unless /gperf/ =~ e.message
warn e.message
- exit dest && File.file?(dest) # assume existing file is OK
+ abort unless dest
+ File.utime(nil, nil, dest) # assume existing file is OK
+ exit
else
s = f.string
end