Opened 6 years ago

Last modified 6 years ago

#30 new defect

CUPS wizard doesn't parse localhost CUPS printer list

Reported by: ydario Owned by:
Priority: Feedback Pending Milestone:
Component: wizzard Version:
Severity: high Keywords:
Cc:

Description

When selecting 'Existing CUPS printer' in the 'Network printer' dialog, I see code invokes

lpstat -h localhost -p -c

to get printer list: this list is showed using current NLS settings, so 'printer' word is not present:

E:\>lpstat -h localhost -p -c la stampante Cups-PDF è inattiva. è stata abilitata da mer 12 dic 17.08.53 2018

Setting 'LANG=en' before starting cupswiz from command line works.

Change History (2)

comment:1 by Lewis Rosenthal, 6 years ago

These localized strings are stored in %UNIXROOT%\usr\share\locale\XX\cups_XX.po. The format of a .po file is fairly straightforward, so selecting the right string to match from that shouldn't be too difficult. If the .po file for the given LANG is missing, CUPS and friends fall back to EN, anyway.

comment:2 by diver, 6 years ago

Priority: majorFeedback Pending

this would be a task for Alex to add right? Any work done on it?

Note: See TracTickets for help on using tickets.