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 19876
- From: Clint Adams <clint@xxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: Bug#245974: zsh: export LC_ALL=da_DK causes segfault
- Date: Tue, 4 May 2004 11:06:19 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <13948.1083681716@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <14327.1083662763@xxxxxxx> <13948.1083681716@xxxxxxx>
> This is a better patch, although it's not ideal, owing to the interface
> of strftime which doesn't signal success or failure properly.
glibc suggests this method
buf[0] = '\1';
len = strftime (buf, bufsize, format, tp);
if (len == 0 && buf[0] != '\0')
{
/* Something went wrong in the strftime call. */
...
}
If it's portable, it would seem a better hack.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author