Hi,

The SANE spec says that all strings are encoded in ISO-8859-1 ("Latin-
1"). However, from inspecting the code for sane_strstatus(), it appears
that it just returns ordinary string literals, which use whatever
encoding the compiler prescribes for narrow string literals and need not
be the same.

So, what character encoding should I be assuming for strings coming from
sane_strstatus() as an application writer? One solution to this dilemma
is, since sane_strstatus() appears to only use characters from ASCII in
the strings, is to use UTF-8 string literals, like this:
        u8"Hello, world"

If you can affirm that the specification needs to prevail, I can send a
merge request to adjust the string literals accordingly.

Thanks,
John

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to