1
1
mc/src/selcodepage.h
Leonid Myravjev 56d955152c Ticket #1838: source_codepage autodetect with enca program.
Added support of autodetect codepages via 'enca' program.

New parameter in user configuration file (~/.mc/ini):

[Misc]
autodetect_codeset=(one of `enca --list languages | cut -d : -f1`)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>

Little code cleanup.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

Type accuracy. Added missing includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-08 15:56:48 +02:00

32 строки
1006 B
C

/** \file selcodepage.h
* \brief Header: user %interface for charset %selection
*/
#ifndef MC_SELCODEPAGE_H
#define MC_SELCODEPAGE_H
#ifdef HAVE_CHARSET
#include "lib/global.h"
int select_charset (int center_y, int center_x, int current_charset, gboolean seldisplay);
gboolean do_set_codepage (int);
gboolean do_select_codepage (void);
/* some results of select_charset() */
#define SELECT_CHARSET_CANCEL -2
/* select_charset() returns this value if dialog has been canceled */
#define SELECT_CHARSET_OTHER_8BIT -1
/* select_charset() returns this value if seldisplay == TRUE
* and the last item has been selected. Last item is "Other 8 bits" */
#define SELECT_CHARSET_NO_TRANSLATE -1
/* select_charset() returns this value if seldisplay == FALSE
* and the 1st item has been selected. 1st item is "No translation" */
/* In other cases select_charset() returns non-negative value
* which is number of codepage in codepage list */
#endif /* HAVE_CHARSET */
#endif /* MC_SELCODEPAGE_H */