Re: weird tr output with czech locale

From: Andrey Chernov (ache_at_nagual.pp.ru)
Date: 10/31/03

  • Next message: Tinderbox: "[current tinderbox] failure on i386/pc98"
    Date: Sat, 1 Nov 2003 00:37:24 +0300
    To: Pav Lucistnik <pav@oook.cz>
    
    
    

    On Fri, Oct 31, 2003 at 10:06:50PM +0100, Pav Lucistnik wrote:
    > Hi,
    >
    > strange thing is happening here on two week old -CURRENT world.
    > This simple command:
    >
    > $ echo CATALOG | tr 'a-z' 'A-Z'
    > CATALOG
    >
    > but
    >
    > $ echo CATALOG | LANG=cs_CZ.ISO8859-2 tr 'a-z' 'A-Z'
    > bA?Ak?f

    It is incorrect tr usage (a-z range length and letters sequence is not
    equal to A-Z range length and letters sequence for cs_CZ locale, see cs_CZ
    locale data definition). Correct usage will be

    LANG=cs_CZ.ISO8859-2 tr '[:lower:]' '[:upper:]'

    or

    LANG=C tr 'a-z' 'A-Z'

    -- 
    Andrey Chernov | http://ache.pp.ru/
    
    



  • Next message: Tinderbox: "[current tinderbox] failure on i386/pc98"