mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-30 13:08:48 -06:00
* Print: read lpstat untranslated so printers show on non-English macOS On a Mac whose interface language isn't English, the Print dialog listed no printers. `lpstat -p -d` follows the UI language (here Polish: "drukarka … jest bezczynna", "domyślny cel systemowy: …"), and parse_lpstat only knows the English "printer " and "system default destination:" prefixes, so it matched nothing. - lpstat now runs with LC_ALL=C and LANG=C, which is enough on Linux. macOS CUPS ignores both and follows AppleLanguages unless SOFTWARE is set, in which case it uses LANG, so SOFTWARE is set too. - New test: localized output parses to nothing, and the command sets all three variables. Checked on macOS with a Polish UI: only SOFTWARE=1 LANG=C gives English output, and the dialog now lists every printer with the right default. lp's error messages stay localized; they are shown, never parsed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use the PdfCraft name in lpstat's SOFTWARE variable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>