GNOME Bugzilla – Bug 660626
unbreak build if LC_PAPER is not defined
Last modified: 2011-10-07 21:04:54 UTC
Created attachment 197958 [details] [review] don't use LC_PAPER is we don't define this macro Hi. LC_PAPER is not posix and may not be defined on all systems (it's not on OpenBSD). This patch only use setlocale(2) LC_PAPER is this macro actually exist. ok to push?
Shouldn't this just use gtk_paper_size_get_default() ? Or, if you don't want to link against that, how about copying the function entirely, instead of just this one part ? But for a minimal fix, this patch looks good.
Filed https://bugzilla.gnome.org/show_bug.cgi?id=660769 about the lack of support for non-A4/non-Letter paper sizes. Author: Bastien Nocera <hadess@hadess.net> Date: Mon Oct 3 11:28:28 2011 +0100 printers: Fix build on systems without LC_PAPER By using gtk_paper_size_get_default() directly to do all the hard work for us. https://bugzilla.gnome.org/show_bug.cgi?id=660626
*** Bug 661090 has been marked as a duplicate of this bug. ***