Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: source tree documentation
- X-seq: zsh-workers 21797
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: source tree documentation
- Date: Sun, 2 Oct 2005 00:11:55 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YqIVYrCE2BFi6Az7odSI7DGfbBactR+R0WZDRICjEFZZ6HcUg0se/iiXS8SzeTg4JxHbwCGA3AhWSgakp3KB556J0Rs9q7gnYZZ8WZ8w7Jt3MYPKE9tSv68LpYZe5dE3iZ4Ny7gZDRWFGqoTgCzC7E6uUVG/39wH7/nsyImMrdo=
- In-reply-to: <200509301207.j8UC7GFk032331@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200509301207.j8UC7GFk032331@xxxxxxxxxxxxxx>
- Reply-to: Mikael Magnusson <mikachu@xxxxxxxxx>
On 9/30/05, Peter Stephenson <pws@xxxxxxx> wrote:
> Initial go at enhancing documentation for 4.3.
>
> +The support can be explicitly enabled or disable with --enable-multibyte or
> +--disable-multibyte. Reports of systems where multibyte support was not
> +enabled by default but --enable-multibyte resulted in a usable shell would
> +be appreciated. The developers are not aware of any need to use
> +--disable-multibyte and this should be reported as a bug.
Using the prompt truncation things with multibyte crashes for me, or
rather some sort of busyloop occurs. It seems to only happen with
setopt printeightbit lately.
{0:09:54:~www/a}9% cd さくはらちちとれはしりちとのまはしちりれとまはし
{0:09:55:...c\M-^A\M->\M-c\M-^A\M-/\M-c\M-^A\M-^W}9% setopt printeightbit
<in other shell>
% gdb zsh 495
etc
prompttrunc (arg=34, truncchar=60, doprint=1, endchar=0) at prompt.c:1003
1003 if (*p == Inpar)
(gdb) bt
#0 prompttrunc (arg=34, truncchar=60, doprint=1, endchar=0) at prompt.c:1003
#1 0x080c68f2 in putpromptchar (doprint=1, endchar=0) at prompt.c:467
#2 0x080c86fb in promptexpand (
s=0x8116e58
"%{\033[0m%}%{\033[1;32m%}{%{\033[0;32m%}%*%{\033[0;39m%}:%{\033[0;31m%}%40<...<%{\033[1;31m%}%~%<<%{\033[1;32m%}}%{\033[1;34m%}9%#
%(1j.%{\033[1;33m%}%j jobs
.)%(?.%{\033[0m%}.%{\033[1;31;40m%}%?%{\033[0m%} )", ns=1, rs=0x1
<Address 0x1 out of bounds>,
Rs=0x1 <Address 0x1 out of bounds>) at prompt.c:183
#3 0xa7bab2f8 in zleread (lp=0x81031c0, rp=0x0, flags=1, context=1)
at zle_main.c:960
#4 0x0808a414 in inputline () at input.c:278
#5 0x0808aa5a in ingetc () at input.c:214
#6 0x08080f87 in ihgetc () at hist.c:240
#7 0x08096436 in gettok () at lex.c:628
#8 0x080980f6 in yylex () at lex.c:344
#9 0x080ba20a in parse_event () at parse.c:451
#10 0x080872aa in loop (toplevel=1, justonce=0) at init.c:128
#11 0x08089fc4 in zsh_main (argc=1, argv=0xafb6f6e4) at init.c:1312
#12 0x08052a6e in main (argc=1, argv=0x1) at main.c:93
(gdb) step
1008 else if (w) {
(gdb)
1003 if (*p == Inpar)
(gdb)
1008 else if (w) {
(gdb)
1003 if (*p == Inpar)
I seem to recall someone saying prompt truncation hasn't been looked
at yet, so sorry if you already know about it.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author