From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Jan_Dj=C3=A4rv?= Newsgroups: gmane.emacs.devel Subject: Re: What does Emacs on w32 know that grep can't figure out? Date: Fri, 1 Oct 2010 19:19:40 +0200 Message-ID: <24A61256-6833-4250-B715-E55114546436@swipnet.se> References: <4CA573B7.4050203@swipnet.se> <83tyl6qscq.fsf@gnu.org> <83pqvuqg0a.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (iPhone Mail 8B117) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285953611 6202 80.91.229.12 (1 Oct 2010 17:20:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 17:20:11 +0000 (UTC) Cc: "lekktu@gmail.com" , Andreas Schwab , "lennart.borgman@gmail.com" , "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 01 19:20:08 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1jHC-0008PU-L0 for ged-emacs-devel@m.gmane.org; Fri, 01 Oct 2010 19:20:06 +0200 Original-Received: from localhost ([127.0.0.1]:41717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1jHB-00027Y-RV for ged-emacs-devel@m.gmane.org; Fri, 01 Oct 2010 13:20:05 -0400 Original-Received: from [140.186.70.92] (port=51504 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1jH6-00026l-SE for emacs-devel@gnu.org; Fri, 01 Oct 2010 13:20:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1jH5-0005r6-Qq for emacs-devel@gnu.org; Fri, 01 Oct 2010 13:20:00 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:47837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1jH3-0005qg-VF; Fri, 01 Oct 2010 13:19:58 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 8EDB1E9527; Fri, 1 Oct 2010 19:19:56 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aus9AKe0pUxV4S0jPGdsb2JhbACHb5llYgwBAQEBNS3ICoVEBI0+FoJN X-IronPort-AV: E=Sophos;i="4.57,267,1283724000"; d="scan'208";a="137219166" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 01 Oct 2010 19:19:56 +0200 Original-Received: from [172.20.199.197] (unknown [172.20.199.197]) by coolsville.localdomain (Postfix) with ESMTPSA id 8CCC37FA05A; Fri, 1 Oct 2010 19:19:55 +0200 (CEST) In-Reply-To: <83pqvuqg0a.fsf@gnu.org> X-Mailer: iPhone Mail (8B117) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131169 Archived-At: 1 okt 2010 kl. 14:00 skrev Eli Zaretskii : >> From: Andreas Schwab >> Cc: "Jan D." , lekktu@gmail.com, lennart.borgman@gm= ail.com, emacs-devel@gnu.org >> Date: Fri, 01 Oct 2010 10:12:08 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >>>> Date: Fri, 01 Oct 2010 07:37:59 +0200 >>>> From: "Jan D." >>>> Cc: Lennart Borgman , >>>> Emacs-Devel devel >>>>=20 >>>> GNU grep understands UTF-8 I think. >>>=20 >>> Not really. Grep just compares bytes one by one, it knows nothing >>> about multibyte characters. >>=20 >> grep uses exactly the character encoding as specified by the locale. >=20 > What do you mean by "support"? It compares text by comparing its > constituent bytes, without really understanding that a given sequence > of bytes is a single character. Grep knows about character classes, like [:alpha:] and [:lower:]. But I gues= s most of that comes from the locale support in libc. Jan D.