[winspool 2/6] Move the dlopen of libcups to a separate function, allowing CUPS to be used prior to the full on loading of CUPS printers.

Alexandre Julliard julliard at winehq.org
Thu Dec 24 13:27:44 CST 2009

Jeremy White <jwhite at codeweavers.com> writes:

> I initially implemented this with wide strings. That led to
> cover functions WINSPOOL_GetPPDNameA and WINSPOOL_CopyPPDA
> because the code it interfaces with was ANSI.  It struck
> me as ugly and I imagined Alexandre telling me it was wrong.
> Alexandre, was that the wrong choice?

Using A functions seems to make it easier to handle Unix filenames, but
that's wrong, because Unix filenames are not in the Ansi codepage. If
you want to pass them to A functions you need to convert CP_UNIXCP ->
Unicode -> CP_ACP, so using W functions is actually easier.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list