small typo
[midnight-commander.git] / src / charsets.h
blobb162651609a6458ccd0a9d501a141d111dd4a28e
1 #ifdef HAVE_CHARSET
2 #ifndef __CHARSETS_H__
3 #define __CHARSETS_H__
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 {
18 char *id;
19 char *name;
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 */