[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: |
Jan Djärv |
Subject: |
Re: What does Emacs on w32 know that grep can't figure out? |
Date: |
Fri, 1 Oct 2010 19:19:40 +0200 |
1 okt 2010 kl. 14:00 skrev Eli Zaretskii <address@hidden>:
>> From: Andreas Schwab <address@hidden>
>> Cc: "Jan D." <address@hidden>, address@hidden, address@hidden,
>> address@hidden
>> Date: Fri, 01 Oct 2010 10:12:08 +0200
>>
>> Eli Zaretskii <address@hidden> writes:
>>
>>>> Date: Fri, 01 Oct 2010 07:37:59 +0200
>>>> From: "Jan D." <address@hidden>
>>>> Cc: Lennart Borgman <address@hidden>,
>>>> Emacs-Devel devel <address@hidden>
>>>>
>>>> GNU grep understands UTF-8 I think.
>>>
>>> Not really. Grep just compares bytes one by one, it knows nothing
>>> about multibyte characters.
>>
>> grep uses exactly the character encoding as specified by the locale.
>
> 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 guess
most of that comes from the locale support in libc.
Jan D.
Re: What does Emacs on w32 know that grep can't figure out?, PJ Weisberg, 2010/10/01
Re: What does Emacs on w32 know that grep can't figure out?, Eli Zaretskii, 2010/10/01
Re: What does Emacs on w32 know that grep can't figure out?, Eli Zaretskii, 2010/10/01