From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: What does Emacs on w32 know that grep can't figure out? Date: Fri, 1 Oct 2010 02:29:35 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1285893007 23597 80.91.229.12 (1 Oct 2010 00:30:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 00:30:07 +0000 (UTC) Cc: Emacs-Devel devel To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 01 02:30:06 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 1P1TVl-0002pz-Gf for ged-emacs-devel@m.gmane.org; Fri, 01 Oct 2010 02:30:06 +0200 Original-Received: from localhost ([127.0.0.1]:48631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1TVk-0005Tt-Q2 for ged-emacs-devel@m.gmane.org; Thu, 30 Sep 2010 20:30:04 -0400 Original-Received: from [140.186.70.92] (port=53572 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1TVe-0005TZ-St for emacs-devel@gnu.org; Thu, 30 Sep 2010 20:29:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1TVd-0005hS-T4 for emacs-devel@gnu.org; Thu, 30 Sep 2010 20:29:58 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:52513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1TVd-0005hK-PS for emacs-devel@gnu.org; Thu, 30 Sep 2010 20:29:57 -0400 Original-Received: by qyk36 with SMTP id 36so2877499qyk.0 for ; Thu, 30 Sep 2010 17:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=MQXJ3IBsmRjNXzC1DNv579jMAHo4r3bO0SUY6AdE61g=; b=R80wRg6p2YSLInrWFz8mvxjwDU2lO1fe+zF+TpYGeuhPEK70XD076CPG/7RnxPGZCh NAbGgE3TTf2chPm9oa/tG2mT/uHQJhIaC47XqEu0Dj3SU/pfPiqW410T7W4+A3+ANfDd J073nuwH8YI9EfQ7i5mKOS+brYmdLQT5VdSI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=HlpJPi+ZsPMDi01gICK/J0sRQilljjFDcEPN6xIIDMqC46CEPz1j6/HWKQU611TcF8 euqSWnsiTDjEWPAHC8D+FYxS/S6zYRpbA9BlDcD7abOKXAHI7h/1t8nkwYlfDc4jySNt tUypK2BbOrnkhR215NbBaxgZvao8RvKnvJD5k= Original-Received: by 10.229.189.195 with SMTP id df3mr3276429qcb.143.1285892995496; Thu, 30 Sep 2010 17:29:55 -0700 (PDT) Original-Received: by 10.229.220.195 with HTTP; Thu, 30 Sep 2010 17:29:35 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:131112 Archived-At: On Fri, Oct 1, 2010 at 1:58 AM, Juanma Barranquero wrote: > >> However trying to search this file from a cmd prompt with (gnuwin32) >> grep does not work. And it does not work with cygwin grep either. They >> think it is a binary file > > It is. This is unrelated to Emacs. The grep tools you're using do not > support utf-16 text. > >> Is grep sometimes useless on w32 now, or? > > It will be useless whenever you try to grep a file in a coding system > the grep tool does not support... Yes, of course, that is actually what I am saying... I actually think that there is no grep etc that handles this kind of files on w32. Is there on *nix? >> (How do we >> handle that in Emacs?) > > How do we handle what? If you mean, how can Emacs read the text just > fine... Emacs has supported UTF-16 and many other coding systems for > years. Using grep is an integral part of Emacs. If grep does not support the coding then that part of Emacs will fail. > As for what can you do, > > C-x f iso-latin-1-unix > > then save. Yes, but that does not help if you have a lot of files you want to search.