mc/src/charsets.h
Andrew V. Samoilov aa2832dff9 * util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
fails.

* util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
* setup.c [HAVE_CHARSET] (load_setup): Don't use
init_printable_table().

* charset.c (printable): Removed.
(init_printable_table): Removed.
2002-02-04 18:09:42 +00:00

35 lines
737 B
C

#ifdef HAVE_CHARSET
#ifndef __CHARSETS_H__
#define __CHARSETS_H__
#define UNKNCHAR '\001'
#define CHARSETS_INDEX "mc.charsets"
typedef unsigned char uchar;
extern int n_codepages;
extern uchar conv_displ[256];
extern uchar conv_input[256];
extern uchar printable[256];
struct codepage_desc {
char *id;
char *name;
};
extern struct codepage_desc *codepages;
char *get_codepage_id( int n );
int get_codepage_index( const char *id );
int load_codepages_list(void);
void free_codepages_list(void);
char* init_translation_table( int cpsource, int cpdisplay );
void convert_to_display( char *str );
void convert_from_input( char *str );
void convert_string( uchar *str );
#endif /* __CHARSETS_H__ */
#endif /* HAVE_CHARSET */