nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] mhshow: unable to convert character set of...


From: Ralph Corderoy
Subject: Re: [Nmh-workers] mhshow: unable to convert character set of...
Date: Sat, 14 Feb 2015 19:19:35 +0000

Hi Andy,

> One day grep matched a number of things that I didn't expect it to
> match

Yes, I think we've all had that struggle with a non-C locale.  :-)  The
other reason I still use ~/bin/C quite a bit is grep used to be much
slower in en_GB.utf8 than C.  I think GNU have narrowed the gap, but it
can still make a difference, plus there are times when you know you want
to specify a C-locale regexp, as you say.

I also use it to stop localisation, e.g. translating error messages and
cluttering up trace output.

    $ strace -c ls /foo |& sed '1,2b; $b; d'
    ls: cannot access /foo: No such file or directory
    % time     seconds  usecs/call     calls    errors syscall
    100.00    0.000000                   147        27 total
    $
    $ C strace -c ls /foo |& sed '1,2b; $b; d'
    ls: cannot access /foo: No such file or directory
    % time     seconds  usecs/call     calls    errors syscall
    100.00    0.000000                   111        14 total
    $

Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]