[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30738: Invalid timezone (tzalloc failure) treated as out-of-memory

From: Paul Eggert
Subject: bug#30738: Invalid timezone (tzalloc failure) treated as out-of-memory
Date: Mon, 19 Mar 2018 16:55:25 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03/19/2018 09:29 AM, Valery Ushakov wrote:
special casing 0 is still a good idea as it saves a call to

Fair enough; I installed the first attached patch.

this patch also needs to #include <sys/param.h>
where __NetBSD_Version__ is defined.

Thanks, I installed the second attached patch to do that.

tzbuf_format can
probably drop that artisanal &"-"[...] and its corresponding %s, and
just pass -hour instead.

That would mishandle time zones like -00:30:00 (i.e., 30 minutes behind UTC). That is, the sign is a property of the minutes and the seconds too, not just the hours.

Attachment: 0001-Tune-time-zone-0.patch
Description: Text Data

Attachment: 0001-Improve-port-to-NetBSD-tzalloc.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]