_ [debian] bsdmainutils 8.0.x 変

zee を久々に使ってたら、

% zee あ
look: Invalid or incomplete multibyte or wide character

と日本語が通らなくなってた。look が何か変わったのかな?と調べてみると、bsdmainutils 6.1.11 では使えてたけど、8.0.1 以降に使えなくなったみたい。

  • Updated look to latest version from FreeBSD. (Closes: #547622)
ref. /usr/share/doc/bsdmainutils/changelog.gz

これで新しくなったため? zee UTF-8 化に加えて、以下の変更で動くようになった。安直。

--- zee.old	2008-09-11 01:01:45.000000000 +0900
+++ zee	2010-01-03 01:55:51.000000000 +0900
@@ -25,7 +25,7 @@
 # default dict. for an EUC-JP query
 my @JAPANESE_DICT    = ("jgene");  
 
-my $LOOK    = "look -f"; # a command which is used for searching
+my $LOOK    = "LC_ALL=ja_JP.eucJP LANG=ja_JP.eucJP look -f"; # a command which is used for searching
 my $PAGER   = "lv";    # a command which is used for viewing results
 my $COLUMNS = 60;        # output is folded in this columns
 my $LINES   = 30;        # a pager is invoked when output is over this lines