This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Timezone POSIX compliance bug.


> SUSv3 says this about the TZ offset:
> 
> The hour shall be between zero and 24, and the minutes (and seconds)-if
> present-between zero and 59.  
> 
> glibc currently clips this range at 23 hours.

I think you are correct that this is wrong as it is.

Off hand I cannot see why we clip the given values at all.  The behavior is
unspecified in that case, so anything we deem appropriate is conforming.
Just multiplying out random huge values seems fine to me.  The only
potential concern is if some users somehow expect to use bogus values and
have them mean 23 (or 24) or 59, which seems unlikely.  

Does anyone see a problem with just removing this caps altogether?


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]