5 #define UNKNCHAR '\001'
7 #define CHARSETS_INDEX "mc.charsets"
9 typedef unsigned char uchar
;
11 extern int n_codepages
;
13 extern uchar conv_displ
[256];
14 extern uchar conv_input
[256];
15 extern uchar printable
[256];
17 struct codepage_desc
{
22 extern struct codepage_desc
*codepages
;
24 char *get_codepage_id( int n
);
25 int get_codepage_index( const char *id
);
26 int load_codepages_list(void);
27 void free_codepages_list(void);
28 char* init_translation_table( int cpsource
, int cpdisplay
);
29 void convert_to_display( char *str
);
30 void convert_from_input( char *str
);
31 void convert_string( uchar
*str
);
33 #endif /* __CHARSETS_H__ */
34 #endif /* HAVE_CHARSET */