"Christopher A. Larrieu" wrote:
>
> Hi all,
>
> I've discovered a minor problem in tsTextToStamp() which
> prevents the year "00" from being parsed properly, while
> 01..89 are problem-free. The culprit is a test for
> (year <= 0), which should be (year < 0). To wit, the
> following modification should be made to tsSubr.c version
> 1.35.2.1 at lines 1318 and 1368.
>
> line 1318:
>
> if (count <= 1 || t.year <= 0)
>
> becomes
>
> if (count <= 1 || t.year < 0 ||
> (count > 3 && t.year < TS_EPOCH_YEAR))
>
>
> I vaguely recall someone else mentioning something similar
> some time ago, so sorry if this is already known. As far as
> I can tell, none of EPICS base uses this routine, though I
> haven't checked the extensions.
I made the change so that it will be in both the next patch release (3.13.2) and
in the 3.14 releases.
Thanks,
Marty Kraimer
- References:
- tsTextToStamp y2k glitch Christopher A. Larrieu
- Navigate by Date:
- Prev:
tsTextToStamp y2k glitch Christopher A. Larrieu
- Next:
ni gpib Marty Kraimer
- Index:
1994
1995
1996
1997
1998
<1999>
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
tsTextToStamp y2k glitch Christopher A. Larrieu
- Next:
ni gpib Marty Kraimer
- Index:
1994
1995
1996
1997
1998
<1999>
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|