On dbview in MC

Ruslan Fedyarov fedyarov at ukr.net
Thu Jul 12 06:24:17 UTC 2007


Hi dear,

It may be interesting for you to know how I use dbview in Midnight 
Commander. Since historically Russian and Ukrainian symbols have several 
charsets still used widely, I use 'enca' encoding guesser (from Debian 
distribution) like this in Midnight Commander's extension file:

# dbf
regex/\.([dD][bB][fF])$
        Open=%view{ascii} dbview %f |enca -L ru -cx utf-8 2>/dev/null
        View=%view{ascii} dbview -b %f |enca -L ru -cx utf-8 2>/dev/null

So now it correctly shows both DOS FoxPro and Windows Visual FoxPro dbf 
files without any user decision. You may mention this technique in docs 
if you want.

Thank you,

Ruslan Fedyarov



More information about the mc-devel mailing list