bug#26261: ~N mishandles small nanoseconds value

2017-03-25 Thread Zefram
The ~N format specifier in SRFI-19's date->string is documented to show the nanoseconds value, with zero padding. The documentation explicates further by showing as an example a string of nine zeroes. In fact the implementation only pads to seven digits, and so produces incorrect output for and n

bug#26260: ~f SRFI-19 format specifier mishandles one-digit seconds value

2017-03-25 Thread Zefram
The ~f format specifier for SRFI-19's date->string is documented as: #~f seconds and fractional seconds, with locale # decimal point, eg. `5.2' Let's test that example: scheme@(guile-user)> (use-modules (srfi srfi-19)) scheme@(guile-user)> (date->string (make-date 2 5 3

bug#26259: ~f SRFI-19 format broken for small nanoseconds values

2017-03-25 Thread Zefram
The ~f format specifier in SRFI-19's date->string function is supposed to produce a decimal string representation of the seconds and nanoseconds portions of a date together: scheme@(guile-user)> (use-modules (srfi srfi-19)) scheme@(guile-user)> (date->string (make-date 55000 56 34 12 26 3 2017