From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: Character folding in the pretest Date: Thu, 4 Feb 2016 16:40:23 +0800 Message-ID: References: <87mvriuk3a.fsf@gmail.com> <8737t9ex1p.fsf@petton.fr> <83oabxyf71.fsf@gnu.org> <56B230D1.90902@gmail.com> <87bn7x4i4o.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114402be8388d5052aedaf48 X-Trace: ger.gmane.org 1454575396 1653 80.91.229.3 (4 Feb 2016 08:43:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 08:43:16 +0000 (UTC) Cc: emacs-devel To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 04 09:43:16 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 1aRFVR-0005RC-Eo for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2016 09:43:13 +0100 Original-Received: from localhost ([::1]:40331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRFVQ-0001Z9-SK for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2016 03:43:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRFSj-0006AC-MX for emacs-devel@gnu.org; Thu, 04 Feb 2016 03:40:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRFSi-0001S1-Oy for emacs-devel@gnu.org; Thu, 04 Feb 2016 03:40:25 -0500 Original-Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]:34631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRFSi-0001Rq-KZ for emacs-devel@gnu.org; Thu, 04 Feb 2016 03:40:24 -0500 Original-Received: by mail-vk0-x229.google.com with SMTP id e185so32114769vkb.1 for ; Thu, 04 Feb 2016 00:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vAThhyXgdQGnwxIXNYZNfSZtGhIPIB+w5jWbOsK0HTs=; b=CmmrBr+v1bCyeDTA6C9q8K55cUcav2WTH2j44i1r+VTOe++6ClEWILeEnbME/wbXw4 yubQxMS6gBeu7AWxZZJxxrSi7pVihOMU/WgId9roaiqXgVk94EayMcnVYfk4MgV1BKAV MsOd/QrPUNjidR/+tQNnaT5a/iNRUjQWtBFzzs7hd5xSOoM35ciavhcxLI7G7MpDgKDd 9+LNw/xShfDKjudcZAUEK07zwDpgnvmGclW0cEv3dpe0Nw7UslGbs+bdGCmPokRRHSEF XU3+pJV3xnPTqTV4fw4zHNdbELRZMD/Tc0Mb6510Im6c14Liokm7tCG9G957fAR/Wr1A nVbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=vAThhyXgdQGnwxIXNYZNfSZtGhIPIB+w5jWbOsK0HTs=; b=HsFJ87D4ve79V6kxDyOZ+j5INVUc73lgFCN0Z5chQyGazIDs1Rhe/zzTIcgVyEzUHV CneGKG1RLKskkexTq7TetmelyXb/o6WigLEmmt1KZ8xVtxO2z9JmbodTLINAYbhfAr1X LMz2MLquwEVgHSxls+pYpWvY5PclOnd6s/xqEKtBdgisvc2VTBwvy1YuFkSzdVG6SFT8 5V6iFf36kngXyhKdSOj4wKgpeUh69VUnj855tccXXQVm0t85oRK6fY0WIteTash9qzy8 9GG3QQpcQBcZr1Si+mzYeeB6UK0dpn2x3FxLYJpVClwkZHl+PQqy0HaW4/N90vx1Aer1 4ARQ== X-Gm-Message-State: AG10YOSEKJaWndII6Dhbrw4pCuQMwzW0fNan3hUzDnXxYpbegbh6dA8RxEUkeu6KX8aAHY+F9biTVSb93D+bmQ== X-Received: by 10.31.52.134 with SMTP id b128mr4374214vka.124.1454575223799; Thu, 04 Feb 2016 00:40:23 -0800 (PST) Original-Received: by 10.103.80.2 with HTTP; Thu, 4 Feb 2016 00:40:23 -0800 (PST) In-Reply-To: <87bn7x4i4o.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199287 Archived-At: --001a114402be8388d5052aedaf48 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 4 February 2016 at 05:08, =C3=93scar Fuentes wrote: BTW, searching for `n' also matches `=C3=B1', which is definitely wrong. > Those are not equivalent characters by any stretch. > What type of character equivalence should be used is locale-dependent. Everybody here agrees with that. Thus, the solution must also be locale-dependent. It would make sense to have the default based on the session's locale, meaning that in a Swedish locale a, =C3=A4 and =C3=A5 would be different an= d n and =C3=B1 be different, but under a Spanish locale, the opposite would be true. --001a114402be8388d5052aedaf48 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 4= February 2016 at 05:08, =C3=93scar Fuentes <ofv@wanadoo.es> = wrote:

B= TW, searching for `n' also matches `=C3=B1', which is definitely wr= ong.
Those are not equivalent characters by any stretch.
What type of character equivalence should be used is locale-de= pendent. Everybody here agrees with that. Thus, the solution must also be l= ocale-dependent.

It would make sense to have the d= efault based on the session's locale, meaning that in a Swedish locale = a, =C3=A4 and =C3=A5 would be different and n and =C3=B1 be different, but = under a Spanish locale, the opposite would be true.
--001a114402be8388d5052aedaf48--