bug-gnustep
[Top][All Lists]
Advanced

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

[bug #41557] -[NSCalendarDate descriptionWithCalendarFormat:locale:] emi


From: Larry Campbell
Subject: [bug #41557] -[NSCalendarDate descriptionWithCalendarFormat:locale:] emits incorrect milliseconds
Date: Tue, 11 Feb 2014 23:39:36 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11

URL:
  <http://savannah.gnu.org/bugs/?41557>

                 Summary: -[NSCalendarDate
descriptionWithCalendarFormat:locale:] emits incorrect milliseconds
                 Project: GNUstep
            Submitted by: lcampbel
            Submitted on: Tue 11 Feb 2014 11:39:35 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The initial symptom we noticed was that NSLog sometimes prints a milliseconds
value of 1000:

2013-02-04 21:21:18.999 authdnsconfigloader[28224] smschaef.com: disappeared
from ASAP, and its deletion is permitted, so it's been marked for deletion
2013-02-04 21:21:18.1000 authdnsconfigloader[28224] homesite.com.au:
disappeared from ASAP, and its deletion is permitted, so it's been marked for
deletion
2013-02-04 21:21:19.056 authdnsconfigloader[28224] ksolo.com: disappeared from
ASAP, and its deletion is permitted, so it's been marked for deletion

This was because of various rounding bugs in NSCalendarDate. I wrote a pretty
detailed unit test, and discovered that Mac OS X's behavior in this area was
slightly mysterious, too; my fix exactly replicates Mac OS X's behavior (and
fixes the 1000-millisecond bug).

Patch and unit test will be attached shortly. The patch is relative to
gnustep-base 1.24.0.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41557>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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