Date: Thu, 09 Mar 2017 10:26:17 +0100 From: Mark Martinec <Mark.Martinec+freebsd@ijs.si> To: freebsd-hackers@freebsd.org Cc: Matthias Apitz <guru@unixarea.de> Subject: Re: Why en_US.UTF-8 locale consider a < A? Message-ID: <b7870e7698508f614cae8dacc1305b80@ijs.si> In-Reply-To: <20170308155947.GA4129@c720-r292778-amd64> References: <062a0098-1975-6d2b-b017-f623e46ca20b@delphij.net> <20170308084047.qc2j3vnrh5hycg32@ivaldir.net> <7ad51573-c575-ad2f-b3bd-b011d15981ed@delphij.net> <20170308155947.GA4129@c720-r292778-amd64>
next in thread | previous in thread | raw e-mail | index | archive | help
2017-03-08 16:59, Matthias Apitz wrote: > I recently came across with a related problem and have two questions > (unresolved until now): > > 1. > Using sort, reading the man page of it, it should be sufficient to > set LC_COLLATE correctly. It seems that setting LANG (or unsetting it) > changes the sort Order, why? The search/priority order is: LC_ALL -> LC_COLLATE -> LANG, so in absence of LC_COLLATE and LC_ALL, the LANG determines the collation. http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html : The values of locale categories are determined by a precedence order; the first condition met below determines the value: If the LC_ALL environment variable is defined and is not null, the value of LC_ALL is used. If the LC_* environment variable ( LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME) is defined and is not null, the value of the environment variable is used to initialise the category that corresponds to the environment variable. If the LANG environment variable is defined and is not null, the value of the LANG environment variable is used. If the LANG environment variable is not set or is set to the empty string, the implementation-dependent default locale is used. > 2. > Speaking about German Umlauts, should they be treated as their normal > letters, i.e. 'รค' is like 'a', as one can read in Wiki, or how they are > sorted exactly? Mark
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b7870e7698508f614cae8dacc1305b80>