summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 08:51:33 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 08:51:33 +0000
commit5740c31b30ae5c640c3903499528ef52411756d2 (patch)
tree2b0a04f68654f8b0e4031fb6c7573ccb2473ebdf
parent6ea20a5068e47476eec62bd81115f24bbb88551c (diff)
downloadruby-5740c31b30ae5c640c3903499528ef52411756d2.tar.gz
ruby-5740c31b30ae5c640c3903499528ef52411756d2.tar.xz
ruby-5740c31b30ae5c640c3903499528ef52411756d2.zip
* enc/make_encdb.h: always add ';' at the end of line.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rwxr-xr-xenc/make_encdb.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9630a6034..71c12ded2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jul 1 17:50:44 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/make_encdb.h: always add ';' at the end of line.
+
Tue Jul 1 17:44:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* iseq.c (COMPILE_OPTION_FALSE), time.c (timegm_noleapsecond),
diff --git a/enc/make_encdb.rb b/enc/make_encdb.rb
index 6f71c3dfe..8b5731f54 100755
--- a/enc/make_encdb.rb
+++ b/enc/make_encdb.rb
@@ -57,7 +57,7 @@ Dir.open(encdir) {|d| d.grep(/.+\.[ch]\z/)}.sort_by {|e|
next
end
check_duplication(defs, $1, fn, $.)
- lines << line.sub(/;.*/m, ";\n") if line
+ lines << line.sub(/;.*/m, "").chomp + ";\n" if line
end
end
end