From: Solomon P. <pi...@sh...> - 2019-12-04 15:34:53
|
On Wed, Dec 04, 2019 at 11:33:18PM +0900, Protea Wines Japan wrote: > Could be that one part of the code is calculating or comparing string > length in characters, and another part in bytes? Yup, the RU strings tripping the errors are 49 characters taking up 88 bytes. CUPS has a hardcoded upper limit of 80 characters for these strings. As an aside, the PPD spec doesn't seem to explicitly mention a limit for translation strings (beyond the per-line limit of 255 bytes) so it appears that this is a CUPS implementation detail. If you disable strict conformance checks, CUPS will accept the PPD but truncate the string at 80 bytes, possibly resulting in illegal UTF-8. - Solomon -- Solomon Peachy pizza at shaftnet dot org High Springs, FL ^^ (email/xmpp) ^^ Quidquid latine dictum sit, altum videtur. |