Gnuplot 6.1 3c2133c
built without UNICODE, i.e. UNICODE
and _UNICODE
are not defined.
Platform: MinGW
Expected behavior: wd2d.cpp
can be compiled and Print...
in the windows
terminal should work like a UNICODE build.
Observed behavior:
src/win/wd2d.cpp:995:8: error: no matching function for call to 'PTOpenProvider'
hr = PTOpenProvider(printerName, 1, &provider);
^
note: candidate function not viable: no known conversion from 'PCTSTR' (aka 'const char *') to 'PCWSTR' (aka 'const wchar_t *') for 1st argument
HRESULT WINAPI PTOpenProvider(PCWSTR pszPrinterName, DWORD dwVersion, HPTPROVIDER *phProvider);
^~~~~~~~~~~~~~~~~~~~~~~
src/win/wd2d.cpp:1031:5: error: cannot initialize a parameter of type 'LPCWSTR' (aka 'const wchar_t *') with an lvalue of type 'LPCTSTR' (aka 'const char *')
szDevice, lpgw->Title,
^
Fixed in the main branch.
Why would a non-UNICODE build be still be interesting?