[sane-devel] scanimage does not recognize basic long options

Ralph Little skelband at gmail.com
Sat Feb 4 19:41:43 GMT 2023


Hi,

On 2023-02-04 10:38, Karl Weber wrote:
> Hi Ralf,
>
> On Saturday, 4 February 2023 18:06:41 CET Ralph Little wrote:
>> The condition on SANE_OPTION_IS_SETTABLE(opt->cap) has been removed in
>> version
>>> 1.1.1 and this causes the problem.
>> I'm a bit confused by this comment. I thought that your issue was caused
>> by the backend sending NULL.
>> Which problem do you believe this causes? Or are you saying that the
>> NULL options issue is revealed by this change? That is certainly possible.
> Yes, you may also say that the NULL options issue has been revealed by this
> change. I didn't know, why this check has been removed and I don't know why it
> had been there beforehand. I am really new to sane! I started to look at the
> code two days ago. Before I was only an ignorant user of scanimage. So please
> excuse me.
>
> But irrespective of the wording, are you going to do something about it? Or
> where would be the right place to fix this problem? Currently I have no idea,
> whether hplip-sane is open source and what the chances would be, to get a fix
> in there, if this would be the right place for a fix. I don't even know,
> whether it is part of the SANE API specification, that there must not be NULL
> options.
I suspect that the hpaio backend is doing something improper. However, 
we must deal with it somehow.
I will do a fix.

Cheers,
Ralph



More information about the sane-devel mailing list