Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » Name of a print job is in bad encoding (Windows)
Name of a print job is in bad encoding (Windows) [message #5560] |
Tue, 03 October 2006 12:20 |
zsolt
Messages: 693 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
Fix:
In Draw/DrawWin32.cpp change
PrintDraw::PrintDraw(HDC hdc, const char *docname)
: Draw(hdc)
{
DOCINFO di;
memset(&di, 0, sizeof(di));
di.cbSize = sizeof(di);
di.lpszDocName = docname;
if(::StartDoc(hdc, &di) <= 0) {
Abort();
return;
}
InitPrinter();
}
to
PrintDraw::PrintDraw(HDC hdc, const char *docname)
: Draw(hdc)
{
DOCINFO di;
memset(&di, 0, sizeof(di));
di.cbSize = sizeof(di);
String sys_docname = ToSystemCharset(docname);
di.lpszDocName = ~sys_docname;
if(::StartDoc(hdc, &di) <= 0) {
Abort();
return;
}
InitPrinter();
}
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 07:09:19 CET 2024
Total time taken to generate the page: 0.01570 seconds
|