Ticket #3693: 3693-Hex-patterns-fix-manual-page.patch

File 3693-Hex-patterns-fix-manual-page.patch, 1.2 KB (added by mooffie, 7 years ago)
  • doc/man/mc.1.in

    From d0a51ecb86cae5f1756fcacbae7dc2deddec52d1 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Mon, 26 Sep 2016 13:19:44 +0300
    Subject: [PATCH] Hex patterns: fix manual page.
    
    * Decimal and octal numerals aren't supported(!).
    
    * Negative numbers are no longer supported since commit
      8a0a49c07e0725891db89b773b3e4a6c9974ed03
    ---
     doc/man/mc.1.in | 7 +++++--
     1 file changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in
    index 901efd3..0c07df8 100644
    a b the quotes. Each number matches one byte. You can mix quoted text 
    28942894with constants like this: 
    28952895.PP 
    28962896.nf 
    2897 "String" \-1 0xBB 012 "more text" 
     2897"String" 34 0xBB 012 "more text" 
    28982898.fi 
    28992899.PP 
    2900 Note that 012 is an octal number.  \-1 is converted to 0xFF. 
     2900Numbers are always interpreted in hex. In the example above, "34" is 
     2901interpreted as 0x34. The prefix "0x" isn't really needed: we could type 
     2902"BB" instead of "0xBB". And "012" is interpreted as 0x12, not as an octal 
     2903number. 
    29012904.PP 
    29022905Here is a listing of the actions associated with each key that the 
    29032906Midnight Commander handles in the internal file viewer.