Then the bug is that the GTK print dialog in the case that the page size saved from the last session is an invalid one, prefixes it with "Custom.", which is completely wrong. What it should do is removing the saved wrong size and return to the printer's system default size.
"Custom." should only appear in the syntax "Custom.[WIDTH]x[HEIGHT][UNIT]" where [UNIT] is optional and not supplying it makes PostScript points (1/72 inches) being used. Example: "Custom.21x29.7cm". Sending "Custom." followed by a name makes absolutely no sense and CUPS is not able to convert it into an actual size.
Then the bug is that the GTK print dialog in the case that the page size saved from the last session is an invalid one, prefixes it with "Custom.", which is completely wrong. What it should do is removing the saved wrong size and return to the printer's system default size.
"Custom." should only appear in the syntax "Custom. [WIDTH] x[HEIGHT] [UNIT]" where [UNIT] is optional and not supplying it makes PostScript points (1/72 inches) being used. Example: "Custom.21x29.7cm". Sending "Custom." followed by a name makes absolutely no sense and CUPS is not able to convert it into an actual size.