UTF-8 locale in rpm build

Nico Kadel-Garcia nkadel at gmail.com
Tue May 12 10:31:43 UTC 2015


On Mon, May 11, 2015 at 12:22 PM, Petr Pisar <ppisar at redhat.com> wrote:
> On 2015-05-10, Nico Kadel-Garcia <nkadel at gmail.com> wrote:
>> If a build system needs a particular language, it should be in the
>> build scripts themselves. People do local, personal compilation in
>> environments that use other languages, and in 'LANG=C' or 'LANG=POSIX'
>> to fix the case-sensitive sorting problem for 'sort -i'
>>
>> For reference: if LANG=C or LANG=POSIX, then 'sort' output is case
>> sensitive, and case-insensitive sorting can be activated with 'sort
>> -i'.
>
> Case-insensitive sort is `-f' option. `-i' option excludes some
> character classes from sorting.
>
> -- Petr

My fundamental point stands, though. Once you've set a UTF8 based
LANG, you can't recover proper case sensitive sorting by any "sort"
options without resetting LANG.


More information about the devel mailing list