mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
aa2832dff9
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.
35 lines
737 B
C
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 */
|