On dbview in MC

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
       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

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