zsh-users
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <stephane@chazelas.org>
To: zsh-users@zsh.org
Subject: Re: file globbing
Date: Mon, 9 Aug 2021 11:46:45 +0100	[thread overview]
Message-ID: <20210809104645.mg6kzjqcd3mrigyr@chazelas.org> (raw)
In-Reply-To: <20210808222455.GA287349@zira.vinc17.org>

2021-08-09 00:24:55 +0200, Vincent Lefevre:
[...]
> Just in case, I have the following in my .zshenv file:
> 
> export LC_COLLATE=POSIX
> 
> (actually, mainly for better filename sorting when filenames contain
> hyphen-minus characters). IMHO, it is good to have that by default.
> Specific collation rules should be used only when the context for
> which they are considered is known.
[...]

I wonder how reliable / portable it is to have LC_COLLATE
different from LC_CTYPE, especially when using ranges whose ends
are not in the POSIX locale charset (though I don't think I've
ever used such ranges; but users with languages using other
scripts (Greek, Cyrillic...) might).

In any case, note that having that in *your own* .zshenv doesn't
address the potential problems in the script you write and that
may be used by others.

It should also be noted that LC_ALL takes precedence over
LC_COLLATE.

-- 
Stephane


  parent reply	other threads:[~2021-08-09 10:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 15:14 Ray Andrews
2021-08-05 15:27 ` Peter Stephenson
2021-08-05 15:36   ` Peter Stephenson
2021-08-05 16:05     ` Ray Andrews
2021-08-05 16:48       ` Vincent Lefevre
2021-08-05 18:22         ` Ray Andrews
2021-08-05 18:53           ` Bart Schaefer
2021-08-05 17:52       ` Lawrence Velázquez
2021-08-08 15:07       ` Stephane Chazelas
2021-08-08 16:19         ` Ray Andrews
2021-08-08 18:28           ` Lawrence Velázquez
2021-08-08 22:24           ` Vincent Lefevre
2021-08-09  0:41             ` Ray Andrews
2021-08-09 10:46             ` Stephane Chazelas [this message]
2021-08-05 15:49   ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210809104645.mg6kzjqcd3mrigyr@chazelas.org \
    --to=stephane@chazelas.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).