]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/ppd-cache.c
Fix mapping of OutputBin values such as "Tray1" (<rdar://problem/16685606>)
[thirdparty/cups.git] / cups / ppd-cache.c
index 27bce5f89145d4abb098edea927d4e3c445c9df3..8b29e04d17109146313b060aa9ad994a41251d6a 100644 (file)
@@ -2703,6 +2703,8 @@ pwg_unppdize_name(const char *ppd,        /* I - PPD keyword */
     if (!_cups_isupper(*ppd) && _cups_isalnum(*ppd) &&
        _cups_isupper(ppd[1]) && ptr < end)
       *ptr++ = '-';
+    else if (!isdigit(*ppd & 255) && isdigit(ppd[1] & 255))
+      *ptr++ = '-';
   }
 
   *ptr = '\0';