Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#245974: zsh: export LC_ALL=da_DK causes segfault
- X-seq: zsh-workers 19868
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: 245974-forwarded@xxxxxxxxxxxxxxx
- Subject: Re: Bug#245974: zsh: export LC_ALL=da_DK causes segfault
- Date: Sun, 2 May 2004 20:27:22 -0400
- Cc: zsh-workers@xxxxxxxxxx, Christian Anthon <anthon@xxxxxxxxxxxx>
- In-reply-to: <20040427092356.GA4780@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20040426144112.87B951C02C@xxxxxxxxxxxx> <20040426154922.GA8375@xxxxxxxxxxx> <20040426201800.GA2029@xxxxxxxxxxxx> <20040426224229.GA12757@xxxxxxxxxxx> <20040427092356.GA4780@xxxxxxxxxxxx>
> > Okay, if you use a different prompt (walters, for example), it won't
> > segfault. Correct?
>
> Yep.
> #0 0x080a5cdf in ztrftime ()
> #1 0x08098fc4 in promptexpand ()
> #2 0x08098330 in promptexpand ()
> #3 0x402e5b8f in zleread () from /usr/lib/zsh/4.2.0/zsh/zle.so
Seems that when LC_TIME (or LC_ALL or LANG) is set to a locale such as
da_DK or de_DE, wherein am_pm is set to null strings, zsh will segfault
upon prompt-expanding %p or %P. Seems that the first argument to
ztrftime() is often either NULL or 0x51, though I can't figure out why.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author