Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
zsolt is currently offline  zsolt
Messages: 600
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();
}
 
Read Message
Read Message
Previous Topic: Localisation clarifications
Next Topic: FileSelector charset problem
Goto Forum:
  


Current Time: Sun Dec 08 14:54:52 CET 2019

Total time taken to generate the page: 0.00902 seconds