[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What does Emacs on w32 know that grep can't figure out?
From: |
Thierry Volpiatto |
Subject: |
Re: What does Emacs on w32 know that grep can't figure out? |
Date: |
Sun, 03 Oct 2010 15:23:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) |
Thierry Volpiatto <address@hidden> writes:
> Lennart Borgman <address@hidden> writes:
>
>> On Sat, Oct 2, 2010 at 5:56 PM, Lennart Borgman
>> <address@hidden> wrote:
>>> On Sat, Oct 2, 2010 at 5:23 PM, Eli Zaretskii <address@hidden> wrote:
>>>>> From: Thierry Volpiatto <address@hidden>
>>>>> Date: Sat, 02 Oct 2010 17:05:18 +0200
>>>>> Cc: address@hidden
>>>>>
>>>>> > Based on your advice I just took the trouble to install powershell. I
>>>>> > can not see that it addresses the problem with utf-16, but maybe I am
>>>>> > missing something. Can you please tell me how to search also utf-16
>>>>> > files with it?
>>>>>
>>>>> That's just an idea i sent, i personally don't use (or really few
>>>>> sometimes on other machines) windows systems and i have just a basic
>>>>> knowledge of all that is related to it and microsoft in general (e.g
>>>>> Powershell).
>>>>> So i can't help you much here.
>>>>> Anyway, Eli seem to have tried it and is not convinced.
>>>>
>>>> Looks like the PowerShell cmdlet that's supposed to be equivalent of
>>>> Grep is Select-String.
>>>
>>> Yes, thanks. And that actually works with utf-16.
>>>
>>> So now we have a strange situation.
>>
>>
>> Or maybe not. Looking at the documentation for Select-String here
>>
>> http://technet.microsoft.com/en-us/library/dd315403.aspx
>>
>> it does not look as it autodetects the coding system in the file.
>>
>> It does not even say it can handle utf-16, or at least I can't find
>> it. Maybe someone who understands this better can see it there?
>
> Can you try to use FINDSTR from command line (it work from eshell) and
> tell me if that work on your utf-16 files?
> (It seem this command is not part of powershell)
>
> I wrote some code that use this command with success on windows (with
> anything).
It is now available on anything-config.el
Use M-x anything-do-grep
No tweak, work out of the box on GNU/Linux and windows as it is.
That's a first shot, feedback welcome.
> That would allow to have a decent grep that work on windows without
> having to install external programs.
>
> Even if that seem not powerfull as grep for regexps, that provide a
> default grep command better than "grep command not found".
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- Re: What does Emacs on w32 know that grep can't figure out?, (continued)
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/02
- Re: What does Emacs on w32 know that grep can't figure out?, Mathias Dahl, 2010/10/02
- Re: What does Emacs on w32 know that grep can't figure out?, Eli Zaretskii, 2010/10/02
- Re: What does Emacs on w32 know that grep can't figure out?, David Robinow, 2010/10/02
- Re: What does Emacs on w32 know that grep can't figure out?, Eli Zaretskii, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?, David Robinow, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?, Eli Zaretskii, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?, Thierry Volpiatto, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?, Thierry Volpiatto, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?,
Thierry Volpiatto <=
- Re: What does Emacs on w32 know that grep can't figure out?, Eli Zaretskii, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/03
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/04
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/04
- Re: What does Emacs on w32 know that grep can't figure out?, Juanma Barranquero, 2010/10/04
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/04
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/04
- Re: What does Emacs on w32 know that grep can't figure out?, Juanma Barranquero, 2010/10/04
- Re: What does Emacs on w32 know that grep can't figure out?, Eli Zaretskii, 2010/10/02
- Re: What does Emacs on w32 know that grep can't figure out?, Lennart Borgman, 2010/10/02