https://bugs.winehq.org/show_bug.cgi?id=41190
--- Comment #2 from xuzhen xuzhen@fastmail.com --- Thanks for the information.
The version of libcups on my system is 2.2rc1. I compiled a very simple program copied from CUPS's document, and it reproduced this issue.
I've reported this bug to https://github.com/apple/cups/issues/4870