[Touch-packages] [Bug 1824688] Re: date+%-Y -d "- N years" errors when N > 111

2019-04-15 Thread O. Emmerson
Here's the strace output. ** Attachment added: "straceout" https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1824688/+attachment/5256046/+files/straceout -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to coreutils in

[Touch-packages] [Bug 1824688] Re: date+%-Y -d "- N years" errors when N > 111

2019-04-15 Thread O. Emmerson
Thanks for the testing C de-Avillez. Here's the output of debug: $ date +%-Y -d "- 112 years" --debug date: parsed relative part: -112 year(s) date: input timezone: system default date: using current time as starting value: '20:47:40' date: using current date as starting value: '(Y-M-D) 2019-04-1

[Touch-packages] [Bug 1824688] Re: date+%-Y -d "- N years" errors when N > 111

2019-04-15 Thread O. Emmerson
I got a reply to my bug report on gnu.org which says: " From: Paul Eggert It works for me with coreutils 8.31 on RHEL 7 x86-64: $ date +%-Y -d "- 2010 years" 9 Most likely you are running on a 32-bit machine, and dates in the year 9 cannot be represented in a 32-bit timestamp. So a simple fix

[Touch-packages] [Bug 1824688] Re: date+%-Y -d "- N years" errors when N > 111

2019-04-15 Thread O. Emmerson
Ok, it is now reported upstream: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35289 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to coreutils in Ubuntu. https://bugs.launchpad.net/bugs/1824688 Title: date+%-Y -d "- N years

[Touch-packages] [Bug 1824688] [NEW] date+%-Y -d "- N years" errors when N > 111

2019-04-14 Thread O. Emmerson
Public bug reported: I have been using 'date +%-Y -d "- 2010 years" in a script for years but today after using the script after upgrading to disco it has failed. After some experimentation it succeeds with upto 111 years but fails from 112 onwards. Error given is: 'date: invalid date '- 112 ye