> you should tick the "All charsets" and "Case sensitive"
> checkboxes first.
Previously I never succeeded.
With those 2 'ticks', it finds the first matching byte on the display only.
Once the endianism is determined you can use:
-> cat Log | hexdump | grep 2f3a ==
130 2f3a 772f 6b2e 6168 616e 6163 6564
230 6f65 2073 2040 3835 202e 6966 656c 2f3a
On 9/21/16, mc-requ...@gnome.org wrote:
> Send mc mailing list submissions to
> mc@gnome.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.gnome.org/mailman/listinfo/mc
> or, via email, send a message with subject or body 'help' to
> mc-requ...@gnome.org
>
> You can reach the person managing the list at
> mc-ow...@gnome.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of mc digest..."
>
>
> Today's Topics:
>
>1. Re: change "timeformat_old" from 6 months to 1 year
> (Fourhundred Thecat)
>
>
> --
>
> Message: 1
> Date: Tue, 20 Sep 2016 20:07:58 +0200
> From: Fourhundred Thecat <400the...@gmx.ch>
> To: mc@gnome.org
> Subject: Re: change "timeformat_old" from 6 months to 1 year
> Message-ID: <57e17afe.4040...@gmx.ch>
> Content-Type: text/plain; charset=UTF-8
>
>> On 2016-09-19 05:11, Mooffie wrote:
>>
>> On 9/19/16, Mooffie wrote:
>>>
>>> One possibility is to modify MC's source code:
>>>
>>> https://source.midnight-commander.org/S/lib--timefmt.c.html#L133
>>>
>>> Change the "6L" (six months) to "12L".
>>
>> Or you can edit the MC binary directly.
>>
>> That expression (6 * 30 * 24 * 60 * 60) equals 0x00ed4e00. Use MC's
>> viewer to edit /usr/bin/mc: press for hex view. Search for "00 4e
>> ed 00" (assuming little endian). But it turns out MC's hex search has
>> a bug: you should tick the "All charsets" and "Case sensitive"
>> checkboxes first.
>
> I did not manage to find the hex string 0x00ed4e00, using any of my hex
> editors, so I ended up recompiling mc.
>
> But thanks for the help.
>
> Perhaps, it would make sense to make this option configurable via the
> ini file?
> Or set 12 months by default, because that makes more logical sense than
> 6 months.
>
>
>
>
> --
>
> Subject: Digest Footer
>
> ___
> mc mailing list
> https://mail.gnome.org/mailman/listinfo/mc
>
>
> --
>
> End of mc Digest, Vol 145, Issue 7
> **
>
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc