Bug#1008724: gscan2pdf: date out of range after changing date before saving

2022-04-03 Thread bw
I used the date field for the date the article I was scanning was created..
Maybe it is not the right field for it?
Sometimes I just know a year like 1758 or with a month. So I prefer an
almost open field.

On Sun, 3 Apr 2022 at 13:38, Jeff  wrote:

> On 31/03/2022 11:20, bwak...@gmail.com wrote:
> > gscan2pdf crashes after changing the date to to 1934-1-1 or 1934-01-01
> > just before saving to pdf
> >
> > Date::Calc::Date_to_Time(): date out of range at
> > /usr/bin/site_perl/gscan2pdf line 2817
>
> Good catch. Most file systems don't support file dates before 1970. I
> thought I had put in test cases for all code like this, but this one
> obviously got away.
>
> Thanks for the report. Fixed in the next release.
>


Bug#1008724: gscan2pdf: date out of range after changing date before saving

2022-04-03 Thread Jeff

On 31/03/2022 11:20, bwak...@gmail.com wrote:

gscan2pdf crashes after changing the date to to 1934-1-1 or 1934-01-01
just before saving to pdf

Date::Calc::Date_to_Time(): date out of range at
/usr/bin/site_perl/gscan2pdf line 2817


Good catch. Most file systems don't support file dates before 1970. I 
thought I had put in test cases for all code like this, but this one 
obviously got away.


Thanks for the report. Fixed in the next release.


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1008724: gscan2pdf: date out of range after changing date before saving

2022-03-31 Thread bwakkie
Package: gscan2pdf
Version: 2.12.5


gscan2pdf crashes after changing the date to to 1934-1-1 or 1934-01-01
just before saving to pdf

Date::Calc::Date_to_Time(): date out of range at
/usr/bin/site_perl/gscan2pdf line 2817
INFO - Starting gscan2pdf 2.12.5
INFO - Called with perl -I /home/[USERNAME]/perl5/lib/perl5 /usr/bin/site_perl/gscan2pdf --log=/home/[USERNAME]/.local/bin/gscan_date.log --debug
INFO - Log level DEBUG
INFO - Using en_US.UTF-8 locale
INFO - Startup LC_NUMERIC C
INFO - Reading config from /home/[USERNAME]/.config/gscan2pdfrc
INFO - Config file version v2.12.5
DEBUG - $VAR1 = {
  'Blank threshold' => '0.005',
  'Dark threshold' => '0.12',
  'OCR on scan' => 1,
  'OCR output' => 'replace',
  'Page range' => 'all',
  'Paper' => {
   'A3' => {
 'l' => 0,
 't' => 0,
 'x' => 297,
 'y' => 420
   },
   'A4' => {
 'l' => 0,
 't' => 0,
 'x' => 210,
 'y' => 297
   },
   'US Legal' => {
   'l' => 0,
   't' => 0,
   'x' => 216,
   'y' => 356
 },
   'US Letter' => {
'l' => 0,
't' => 0,
'x' => 216,
'y' => 279
  }
 },
  'SANE version' => '1.1.1',
  'TMPDIR' => undef,
  'adf-defaults-scan-all-pages' => 1,
  'allow-batch-flatbed' => '',
  'author' => 'Kanervo, E. 1934',
  'author-suggestions' => [
'Carl Robert Osten-Sacken',
'Chagnon, Gustave, 1871-1966',
'Sack',
'Creator: ocrmypdf 12.3.2 / Tesseract OCR-PDF 4.1.1',
'Creator: Canon iR3235',
'Violovich',
'Zimina',
'Bezzi',
'Seguy',
'Hippa',
'Goeldlin de Tiefenau 1976',
'Brunetti 1929',
'Barkalov 1993',
'Naderloo, Pashaei Rad 2013',
'van Doesburg',
'Borisova 1985',
'Haack Tscharntke Vidal 1984',
'Klein-Krautheim 1936',
'Schmid 2004',
'Loew',
'Dusek Laska 1972',
'Speight 1978',
'Tyler Townsend 1898',
'Violovich 1973',
'Richter Kuznetsov 2007',
'Speight 2988',
'Jilong 1991',
'Takeuchi Sasai 2017',
'Verlinden 1995',
'Stackelberg 1968',
'Hippa 1974',
'van Doesburg 1966',
'Loew 1861-1872',
'Hull 1949',
'Fluke 1956',
'Violovich 1964',
'Lucas 1976',
'Smart',
'Auad 2006',
'Hartley 1961',
'Andersson 1988',
'Rotheray 1987',
'Ichige 2018',
'Stackelberg 1958',
'Bankowska 1971',
'Schneider 1948',
'Collin 1939',
'Ichige 2017',
'Taco 2017',
'Brunetti 1929a',
'd\'Andretta, Carrera 1952',
'Violovich 1976a',