I attached the patch. This is quick durty hack, work on
LANG=ja_JP.UTF-8 only. Ofcause, patched migemo is not work on
LANG=ja_JP.eucJP.
I want to rewrite for work on UTF-8 and EUC-JP, but I can't.
This patch is for migemo_0.40-7.1.
--- migemo.orig 2006-12-28 06:28:15.000000000 +0900
+++ migemo 2007-01-17 22:11:02.000000000 +0900
@@ -15,6 +15,7 @@
require 'migemo'
require 'getoptlong'
require 'thread'
+require 'nkf'
class Logger
def initialize (filename)
@@ -155,7 +156,7 @@
regex_str = [regex_str1, regex_str2].join(bar)
end
- puts regex_str
+ puts NKF.nkf('-Ew', regex_str)
puts options['separator'] if options['separator']
logger.puts(pattern) if logger
end