summaryrefslogtreecommitdiff
path: root/template/encdb.h.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/encdb.h.tmpl')
-rw-r--r--template/encdb.h.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/template/encdb.h.tmpl b/template/encdb.h.tmpl
index e65b651050..4275a4c2f0 100644
--- a/template/encdb.h.tmpl
+++ b/template/encdb.h.tmpl
@@ -34,11 +34,15 @@ encdirs.each do |encdir|
next if files[fn]
files[fn] = true
open(File.join(encdir,fn)) do |f|
- orig = nil
name = nil
f.each_line do |line|
if (/^OnigEncodingDefine/ =~ line)..(/"(.*?)"/ =~ line)
if $1
+ if name
+ lines << %[ENC_SET_BASE("#$1", "#{name}");]
+ else
+ name = $1
+ end
check_duplication(defs, $1, fn, $.)
encodings << $1
count += 1