On 13/06/2013 12:26, Thorsten M?ller wrote: > Hello, > > I've got a problem with the 1.0.24 genesys backend. I need to use 1.0.24 > since the 5 front panel buttons of my CanScan LidE 210 are not fully > supported in earlier versions. > > When I try to scan in tiff format, this it what happens: > > | tm at dungeonmaster:~ $ scanimage --format=tiff > /tmp/test.tiff > | scanimage: unrecognized option '--format=tiff' > > It works with earlier versions of sane (tested with 1.0.22 and 1.0.23). > > I use Kubuntu Linux 12.04 Precise Pangolin x86_64 and the 1.0.24git > packages from this ppa: > http://ppa.launchpad.net/rolfbensch/sane-git/ubuntu > > scanimage --format=tiff works with the oroginal packages from the distro > (Version 1.0.22-7ubuntu1) and from this ppa: > http://ppa.launchpad.net/nathan-renniewaldock/sane/ubuntu/ (Version > 1.0.23-0ubuntu1~ppa1~precise) > > I tried building from the daily 1.0.24 snapshot sources myself, it gives > the same results: > > | tm at dungeonmaster:~ $ scanimage --format=tiff > /tmp/test.tiff > | scanimage: unrecognized option '--format=tiff' > > Perhaps someone can shed some light on this. And BTW, there are some > more long options that don't work any longer: > --icc-profile, --batch-* > > TIA for any help > Greetings > Thosten > Hello,
I have ran into similar issue. The following patch fixes for me: diff --git a/frontend/scanimage.c b/frontend/scanimage.c index ce958df..49030a3 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -2091,7 +2091,7 @@ Parameters are separated by a blank from single-character options (e.g.\n\ /* re-run argument processing with backend-specific options included * this time, enable error printing and arg permutation */ - optind = 0; + /* optind = 0; */ opterr = 1; while ((ch = getopt_long (argc, argv, full_optstring, all_options, &index)) != EOF) Since the current has been correct for years, maybe there is a regression in glibc ? Regards, Stef