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

Bug#89098: 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



Reply to: