[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#266744: LC_ALL overrides LC_COLLATE when determining console type in termwrap



On Wed, 2004-08-18 at 23:23 +0100, Matthew Garrett wrote:

> In the recognise terminal type section of termwrap, both LC_ALL and 
> LC_COLLATE are set. However, LC_ALL overrides LC_COLLATE, and as a 
> result serial consoles are incorrectly identified as pseudo consoles. 
> Unsetting LC_ALL at this point and restoring it again afterwards result 
> in the check running correctly.

The actual answer, of course, is not to set LC_ALL at all. LANG sets
defaults that can be overridden by other variables - LC_ALL overrides
everything. Just removing all references to LC_ALL does the job.

-- 
Matthew Garrett | mjg59@srcf.ucam.org




Reply to: