Path: galaxy.trc.rwcp.or.jp!news.trc!nf2.iij.ad.jp!nr0.iij.ad.jp!news.iij.ad.jp!rim.or.jp!Q.T.Honey!yynet.tama.tokyo.jp!yokota
From: Yoshinori Yokota/=?ISO-2022-JP?B?GyRCMiNFRDVBRkEbKEI=?=  <yokota@yynet.tama.tokyo.jp>
Newsgroups: fj.questions.unix
Subject: Re: [Where] Japanized bash patch
Date: 30 Nov 1997 13:05:57 GMT
Organization: YY-NET, Tama, Tokyo, JAPAN
Lines: 60
Message-ID: <65robl$nvf$1@cipher.yynet.tama.tokyo.jp>
References: <m367pc8er7.fsf@mp-chute.jwu.ac.jp>
	<65rcbg$8n4$1@pine.cix.chiba-u.ac.jp>
NNTP-Posting-Host: cipher.yynet.tama.tokyo.jp
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Newsreader: mnews [version 1.20] 1996-12/08(Sun)
Xref: galaxy.trc.rwcp.or.jp fj.questions.unix:7862
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.questions.unix&nb=7862&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B2#ED$G$9!#(B

<65rcbg$8n4$1@pine.cix.chiba-u.ac.jp>$B$N5-;v$K$*$$$F(B
yamaga@ipc.chiba-u.ac.jp$B$5$s$O=q$-$^$7$?!#(B

>> > $B;3eQ$H?=$7$^$9!#(Bbash-1.14.x $B$H(B bash-2.xx $B$NF|K\8l2=%Q%C%A$NCV$->l(B
>> > $B=j$r65$($F$/$@$5$$!#(Bftp.iis.u-tokyo.ac.jp $B$N(B fj.sources $B$rC5$7$^(B
>> > $B$7$?$,8E$$$b$N$7$+$"$j$^$;$s$G$7$?!#(B
>> 
>> $B@>Eg$5$s$N(B bash-1.14.1 $BMQ$N%Q%C%A$r(B bash-2.0x $B$G;H$($k$h$&$K$7$?$b(B
>> $B$N$G$7$?$i(B
>> <ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/bash/>
>> $B$K$"$j$^$9!#$b$759$7$1$l$P$*;n$72<$5$$!#(B

$B;d$b;n$5$;$F$$$?$@$-$^$7$?!#(B
  >> $B!y4{CN$N%P%0(B
  >>   $BF~NO9T$,J#?t9T$KEO$C$?$H$-$NF0:n$,IT0BDj(B
$B$H$$$&$N$G!"$A$g$C$H%=!<%9(B (lib/readline/display.c) $B$r$$$8$C$F$_$^$7$?!#(B

--- display.c.~1~Sun Nov 30 20:21:26 1997
+++ display.cSun Nov 30 21:39:02 1997
@@ -592,17 +592,18 @@
 vispos = invpos = 0;
 for (nextinv = -1, linenum = 0; nextinv < out; linenum++)
 {
-  nextinv = adjust_position (invisible_line, invpos + screenwidth);
+  nextinv = adjust_position (invisible_line + invpos, screenwidth)
+      + invpos;
   update_line (linenum > _rl_vis_botlin ? "" : &visible_line[vispos],
-&invisible_line[invpos], linenum);
+&invisible_line[invpos], linenum, 0, 0, inv_botlin);
   if ((c_pos >= invpos && c_pos < nextinv) || (nextinv == out && c_pos == out))
   {
 cursorline = linenum;
 cursorcol = c_pos - invpos;
 cursorlinepos = invpos;
   }
-  vispos = adjust_position (visible_line, vispos + screenwidth);
-  invpos = nextinv;
+  vispos = adjust_position (visible_line, vispos + screenwidth) + 1;
+  invpos = nextinv + 1;
 }
 inv_botlin = linenum - 1;
 if (_rl_vis_botlin > inv_botlin)


update_line() $B$N$H$3$m$O$h$/J,$i$J$+$C$?$N$G!"(B
$B$A$g$C$H!J$+$J$j!)!K$F$-$H!<$G$9!#(B:-)
# $BBh;M!"8^0z$-?t$O(B KANJI $B$G$O;H$C$F$J$$$_$?$$$G$9$7!#(B

$B$H$j$"$($:!"(B

  $ echo "$B$F$9$H(B
  > $B$F$9$H(B
  > "

$B$r<B9T$7$?8e$K(B C-p $B$G;_$^$i$J$$$h$&$K$J$C$?$H;W$$$^$9!#(B
$B$J$*!";n$7$?$N$O(B bash-2.01.1.tar.gz + bash-2.01.1.jpatch.970609 $B$G$9!#(B
---
by $B$h$3$?(B http://www.yynet.tama.tokyo.jp/~yokota/
