emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort-lines including non ASCII


From: Teemu Likonen
Subject: Re: sort-lines including non ASCII
Date: Fri, 08 Jul 2016 07:17:53 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux)

Eli Zaretskii [2016-07-07 18:23:03+03] wrote:

>> If we are allowed to step outside Emacs filtering lines through (GNU)
>> /usr/bin/sort should do what you want.
>
> Only if the locale outside Emacs is the one you want to use for
> collation. Emacs is a multilingual environment, so it supports
> multiple collating locales, independently of the system one.

Yes, Emacs is nice, but system's locale is just some installed files and
environment variables. They can be changed too. Here's an example how to
sort lines using locale fi_FI.UTF-8 in GNU systems:

    M-x shell-command-on-region RET LC_COLLATE=fi_FI.UTF-8 sort RET

-- 
/// Teemu Likonen   - .-..   <https://github.com/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]