10
extern int UCTransUniChar PARAMS((
13
extern int UCTransUniCharStr PARAMS((
18
int chk_single_flag));
19
extern int UCTransChar PARAMS((
23
extern int UCReverseTransChar PARAMS((
27
extern int UCTransCharStr PARAMS((
33
int chk_single_flag));
34
extern UCode_t UCTransToUni PARAMS((
37
extern int UCGetRawUniMode_byLYhndl PARAMS((
39
extern int UCGetLYhndl_byMIME PARAMS((
40
CONST char * p)); /* returns -1 if name not recognized */
41
extern int safeUCGetLYhndl_byMIME PARAMS((
42
CONST char * p)); /* returns LATIN1 if name not recognized */
44
#ifdef EXP_LOCALE_CHARSET
45
extern void LYFindLocaleCharset NOPARAMS;
48
extern int UCLYhndl_for_unspec;
49
extern int UCLYhndl_for_unrec;
50
extern int UCLYhndl_HTFile_for_unspec;
51
extern int UCLYhndl_HTFile_for_unrec;
54
extern int LATIN1; /* UCGetLYhndl_byMIME("iso-8859-1") */
55
extern int US_ASCII; /* UCGetLYhndl_byMIME("us-ascii") */
56
extern int UTF8_handle; /* UCGetLYhndl_byMIME("utf-8") */
58
#undef TRANSPARENT /* defined on Solaris in <sys/stream.h> */
59
extern int TRANSPARENT; /* UCGetLYhndl_byMIME("x-transparent") */
62
In general, Lynx translates letters from document charset to display charset.
63
If document charset is not specified or not recognized by Lynx, we fall back
64
to different assumptions below, read also lynx.cfg for info.
66
UCLYhndl_for_unspec - assume this as charset for documents that don't
67
specify a charset parameter in HTTP headers or via META
68
this corresponds to "assume_charset"
70
UCLYhndl_HTFile_for_unspec - assume this as charset of local file
71
this corresponds to "assume_local_charset"
73
UCLYhndl_for_unrec - in case a charset parameter is not recognized;
74
this corresponds to "assume_unrec_charset"
76
UCLYhndl_HTFile_for_unrec - the same but only for local files,
80
current_char_set - this corresponds to "display charset",
81
declared in LYCharSets.c and really important.
83
All external charset information is available in so called MIME format.
84
For internal needs Lynx uses charset handlers as integers
85
from UCGetLYhndl_byMIME(). However, there is no way to recover
86
from user's error in configuration file lynx.cfg or command line switches,
87
those unrecognized MIME names are assumed as LATIN1 (via safeUCGetLYhndl...).
91
#define UCTRANS_NOTFOUND (-4)