Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#245974: zsh: export LC_ALL=da_DK causes segfault



> > 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