Bug 454789 - ocaml-calendar Printer module error
ocaml-calendar Printer module error
Product: Fedora
Classification: Fedora
Component: ocaml-calendar (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Richard W.M. Jones
Fedora Extras Quality Assurance
Depends On:
Blocks: 454860 454861
  Show dependency treegraph
Reported: 2008-07-09 21:02 EDT by Hezekiah M. Carty
Modified: 2008-09-11 13:18 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-09-11 13:18:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hezekiah M. Carty 2008-07-09 21:02:09 EDT
Description of problem:
Printing the day of year (%j) with the CalendarLib.Printer.* functions prints
the wrong value for days 1 through 9.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Load ocaml-calendar in the OCaml toplevel or in any OCaml code
2. Use the following commands:

let d = CalendarLib.Calendar.make 2007 01 01 01 01 0
CalendarLib.Printer.Calendar.print "%Y%j%H%M%S" d

Actual results:
This will print:

Expected results:
rather than the expected:

Additional info:
There is a new version (2.0.4) which fixes this bug and adds a few new
functions.  I am willing to make a patch for just this fix if that is preferable.

I don't know if this bug is a target for fixing in Fedora 9 though, given the
OCaml packaging guidelines.  If it can't be fixed for F9, then rawhide should
probably be updated if it has not been already.
Comment 1 Richard W.M. Jones 2008-07-10 04:48:00 EDT
It's probably better to just upgrade, although we'll need to rebuild
every library which depends on ocaml-calendar, unless we're lucky and
the MD5 sums happen to still match.  Dependent libraries are:

Comment 2 Fedora Update System 2008-07-10 05:17:21 EDT
ocaml-calendar-2.0.4-1.fc9 has been submitted as an update for Fedora 9
Comment 3 Fedora Update System 2008-07-15 08:17:41 EDT
ocaml-calendar-2.0.4-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ocaml-calendar'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-6356
Comment 4 Fedora Update System 2008-09-11 13:18:10 EDT
ocaml-calendar-2.0.4-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.