[sane-devel] sane_read() and SANE_STATUS_EOF
m. allan noah
kitno455 at gmail.com
Tue Jan 5 01:25:08 UTC 2010
The standard is clear. The backend is broken. There is an open-source
backend for the 3170 which ships with current sane. Ask them to try it
with the 3175.
allan
2010/1/4 Kåre Särs <kare.sars at iki.fi>:
> Hi,
>
> I have a bug report for Skanlite where I suspect that the backend returns
> SANE_STATUS_EOF in sane_read() but still has data, because the read data does
> not match the expected size. The scanner is a Samsung CLX-3175FW and I do not
> have access to the scanner. If I have googled correctly, it is also a binary
> only backend :(
>
> The standard clearly states that "*len" has to be set to 0 if anything else
> than SANE_STATUS_GOOD is returned from sane_read() (4.3.10).
>
> I wonder what other frontend developers, would do in this situation. Would you
> just ask the user to file a bug report to the backend provider or would you do
> a workaround?
>
> I can check "*len" and see if it matches the remaining data, but where would
> you draw the line for other similar non-conforming backend problems?
>
> Regards,
> Kåre
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
>
--
"The truth is an offense, but not a sin"
More information about the sane-devel
mailing list