From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sort-lines including non ASCII Date: Fri, 08 Jul 2016 09:32:54 +0300 Message-ID: <8360sgk5bd.fsf@gnu.org> References: <87bn2b6buh.fsf@mat.ucm.es> <874m81j1q5.fsf@iki.fi> <83a8htlbfs.fsf@gnu.org> <87bn283gr2.fsf@iki.fi> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467959633 27886 80.91.229.3 (8 Jul 2016 06:33:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2016 06:33:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Teemu Likonen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 08:33:52 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLPMG-0007xY-9R for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2016 08:33:52 +0200 Original-Received: from localhost ([::1]:43862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLPMF-0007VE-FJ for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2016 02:33:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLPLc-0007Uv-Ot for emacs-devel@gnu.org; Fri, 08 Jul 2016 02:33:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLPLW-00015I-Ri for emacs-devel@gnu.org; Fri, 08 Jul 2016 02:33:11 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLPLW-000159-OQ; Fri, 08 Jul 2016 02:33:06 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2665 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bLPLU-0001JB-Af; Fri, 08 Jul 2016 02:33:04 -0400 In-reply-to: <87bn283gr2.fsf@iki.fi> (message from Teemu Likonen on Fri, 08 Jul 2016 07:17:53 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205408 Archived-At: > From: Teemu Likonen > Cc: emacs-devel@gnu.org > Date: Fri, 08 Jul 2016 07:17:53 +0300 > > >> 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 Why would one need that, given that Emacs includes the same functionality built-in now?