[email protected]
[Top] [All Lists]

Bug#289442: marked as forwarded (zsh: completions do not respect LC_COLL

Subject: Bug#289442: marked as forwarded zsh: completions do not respect LC_COLLATE
From: Debian Bug Tracking System
Date: Sun, 09 Jan 2005 07:48:21 -0800
Your message dated Sun, 9 Jan 2005 10:35:43 -0500
with message-id <[email protected]>
has caused the Debian Bug report #289442,
regarding zsh: completions do not respect LC_COLLATE
to be marked as having been forwarded to the upstream software
author(s) [email protected], "Benjamin Hill (Mako)" <[email protected]>, 
[email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 289442-forwarded) by bugs.debian.org; 9 Jan 2005 15:35:44 +0000
>From [email protected] Sun Jan 09 07:35:44 2005
Return-path: <[email protected]>
Received: from acolyte.scowler.net [] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1Cnf6W-0000RN-00; Sun, 09 Jan 2005 07:35:44 -0800
Received: by acolyte.scowler.net (Postfix, from userid 1000)
        id ABDCB7004A; Sun,  9 Jan 2005 10:35:43 -0500 (EST)
Date: Sun, 9 Jan 2005 10:35:43 -0500
From: Clint Adams <[email protected]>
To: [email protected], "Benjamin Hill (Mako)" <[email protected]>,
        [email protected]
Subject: Re: Bug#289442: zsh: completions do not respect LC_COLLATE
Message-ID: <[email protected]>
References: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

> Thanks for maintaining zsh Clint!
> AFAICT, results returned by tab completions to do not respect
> LC_COLLATE. Preferabley, zsh should sort completions according to
> whatever LC_COLLATE is set to at the time the completions are
> presented.
> To reproduce the bug, go into a directory with upper case and
> lowercase filenames. Set LC_COLLATE to C or POSIX and you should see
> case sensative sorting for a command like ls and in the completions of
> the ls command. Now set LC_COLLATE to, for example, en_US.UTF-8 which
> sorts case insensatively. The behavior will be changed for ls but not
> for tab completions of ls from within zsh.
> Invoking zsh with the LC_COLLATE set does not alter this behavior.

There were some concerns with locale-specific collation order in the
past with respect to surprise data loss when globbing.



However, the real issue with your sorting problem seems to be the use of
a comparison function that ignores locale and behaves differently
depending on the setting of the NUMERIC_GLOB_SORT option.

I think we could change the character comparison at the end of
setbpcmp() to a strcoll(), or do setxfrm()'s at the beginning.

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#289442: marked as forwarded (zsh: completions do not respect LC_COLLATE), Debian Bug Tracking System <=