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 next message
zsolt is currently offline  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();
}
Re: Name of a print job is in bad encoding (Windows) [message #5562 is a reply to message #5560] Tue, 03 October 2006 15:02 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks!

Mirek
Previous Topic: Localisation clarifications
Next Topic: FileSelector charset problem
Goto Forum:
  


Current Time: Fri Mar 29 07:09:19 CET 2024

Total time taken to generate the page: 0.01570 seconds