HAYASHI Kentaro
null+****@clear*****
Sat Jul 12 15:18:57 JST 2014
HAYASHI Kentaro 2014-07-12 15:18:57 +0900 (Sat, 12 Jul 2014) New Revision: 934640d3a7f27eddd6e52b65dd2c660b5b9f0094 https://github.com/groonga/groonga/commit/934640d3a7f27eddd6e52b65dd2c660b5b9f0094 Message: examples: strip after converting encoding properly Modified files: examples/dictionary/edict/edict2grn.rb Modified: examples/dictionary/edict/edict2grn.rb (+2 -2) =================================================================== --- examples/dictionary/edict/edict2grn.rb 2014-07-12 12:58:03 +0900 (55a5cb4) +++ examples/dictionary/edict/edict2grn.rb 2014-07-12 15:18:57 +0900 (664b12c) @@ -40,8 +40,8 @@ load --table item_dictionary END while !STDIN.eof? - line = Kconv.toutf8(gets.strip) - key, body = line.split('/', 2) + line = Kconv.toutf8(gets) + key, body = line.strip.split('/', 2) key = key.strip if /\s*\[(.+)\]\z/ =~ key key = $PREMATCH -------------- next part -------------- HTML����������������������������... 下載