[Mono-dev] PATCH for bug 34123 (System.Drawing.Printing failing on Yosemite)

gsemones guerry at traxia.com
Wed Sep 23 18:37:37 UTC 2015


Hi,

I have a simple patch/fix for  bug 34123
<https://bugzilla.xamarin.com/show_bug.cgi?id=34123>  . The specifics are
also posted in the bug report.

CUPS deprecated the function cupsTempFile a long time back. On Mac OSX
Yosemite, that function now returns an empty string rather than a file name,
which prevents the actual printing of the file by cupsPrintFile. This works
on Mavericks.

Looking over the CUPS documentation, cupsTempFd has an identical method
footprint and purpose, and is not deprecated. I replaced the call to
cupsTempFile with cupsTempFd on both my Mavericks and Yosemite builds of
net_4_x (master), and was able to print on both Yosemite and Mavericks.

The patch is to simply replace the function name "cupsTempFile" with
"cupsTempFd" in both the static extern definition, and in the single call to
cupsTempFile.

I created a pull request here: https://github.com/mono/mono/pull/2085

Thanks,

Guerry




--
View this message in context: http://mono.1490590.n4.nabble.com/PATCH-for-bug-34123-System-Drawing-Printing-failing-on-Yosemite-tp4666644.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list