aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-01-18 12:35:47 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-01-18 12:35:47 -0500
commitd97a65137382daf2f896a947ba680c095f7ab664 (patch)
tree6db3daec0d5c2f909ba586adff0ddc2ad96d84d9 /src
parenta2e9461739dd215db90a5cee2c22a74e5f57d151 (diff)
downloadlynx-snapshots-d97a65137382daf2f896a947ba680c095f7ab664.tar.gz
snapshot of project "lynx", label v2-8-2dev_14
Diffstat (limited to 'src')
-rw-r--r--src/GridText.c3
-rw-r--r--src/HTAlert.h2
-rw-r--r--src/HTInit.c21
-rw-r--r--src/HTML.c22
-rw-r--r--src/LYCharSets.c2
-rw-r--r--src/LYCharUtils.c41
-rw-r--r--src/LYCurses.c14
-rw-r--r--src/LYDownload.c4
-rw-r--r--src/LYForms.c14
-rw-r--r--src/LYGetFile.c15
-rw-r--r--src/LYJump.c5
-rw-r--r--src/LYMain.c9
-rw-r--r--src/LYMainLoop.c20
-rw-r--r--src/LYOptions.c155
-rw-r--r--src/LYStrings.c2
-rw-r--r--src/LYTraversal.c65
-rw-r--r--src/LYUtils.c38
-rw-r--r--src/UCAux.c21
-rw-r--r--src/UCdomap.c2
-rw-r--r--src/chrtrans/MAKEW32.BAT3
-rw-r--r--src/chrtrans/build-chrtrans.com2
-rw-r--r--src/chrtrans/hp_uni.tbl212
-rw-r--r--src/chrtrans/makefile.dos1
-rw-r--r--src/chrtrans/makefile.in2
-rw-r--r--src/makefile.dsl11
-rw-r--r--src/makefile.in1
26 files changed, 505 insertions, 182 deletions
diff --git a/src/GridText.c b/src/GridText.c
index e1100d00..89789f89 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -3082,6 +3082,7 @@ PUBLIC void HText_endAnchor ARGS2(
keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED) &&
(text->hiddenlinkflag != HIDDENLINKS_MERGE ||
(LYNoISMAPifUSEMAP &&
+ !(text->node_anchor && text->node_anchor->bookmark) &&
HTAnchor_isISMAPScript(
HTAnchor_followMainLink((HTAnchor *)a->anchor)))));
HTLine *last = text->last_line;
@@ -8220,6 +8221,8 @@ PUBLIC void HText_SubmitForm ARGS4(
FREE(copied_name_used);
if (Boundary) {
HTSprintf(&query, "\r\n--%s--\r\n", Boundary);
+ } else if (!query) {
+ StrAllocCopy(query, "");
}
FREE(previous_blanks);
diff --git a/src/HTAlert.h b/src/HTAlert.h
index 334843db..961ee175 100644
--- a/src/HTAlert.h
+++ b/src/HTAlert.h
@@ -10,6 +10,8 @@
#include <HTUtils.h>
+#define ALERT_PREFIX_LEN 5
+
/* Display a message and get the input
**
** On entry,
diff --git a/src/HTInit.c b/src/HTInit.c
index cad2f766..e9a963b0 100644
--- a/src/HTInit.c
+++ b/src/HTInit.c
@@ -647,11 +647,30 @@ PRIVATE int ExitWithError ARGS1(
return(-1);
}
+#define reverse_mailcap 1
PRIVATE int HTLoadTypesConfigFile ARGS1(
char *, fn)
{
- return ProcessMailcapFile(fn);
+ int result = 0;
+ HTList * saved = HTPresentations;
+
+ if (reverse_mailcap) { /* temporarily hide existing list */
+ HTPresentations = NULL;
+ }
+
+ result = ProcessMailcapFile(fn);
+
+ if (reverse_mailcap) {
+ if (result && HTPresentations) {
+ HTList_reverse(HTPresentations);
+ HTList_appendList(HTPresentations, saved);
+ FREE(saved);
+ } else {
+ HTPresentations = saved;
+ }
+ }
+ return result;
}
diff --git a/src/HTML.c b/src/HTML.c
index 486b1b15..377f5ed6 100644
--- a/src/HTML.c
+++ b/src/HTML.c
@@ -681,13 +681,17 @@ PRIVATE void HTML_start_element ARGS6(
UPDATE_STYLE;
}
- CTRACE(tfp, "me->tag_charset: %d -> ", me->tag_charset);
- if (tag_charset < 0)
- me->tag_charset = me->UCLYhndl;
- else
- me->tag_charset = tag_charset;
- CTRACE(tfp, "%d (me->UCLYhndl: %d, tag_charset: %d)\n",
- me->tag_charset, me->UCLYhndl, tag_charset);
+ {
+ /* me->tag_charset is charset for attribute values. */
+ int j = ((tag_charset < 0) ? me->UCLYhndl : tag_charset);
+
+ if ((me->tag_charset != j) || (j < 0 /* for trace entry */)) {
+ CTRACE(tfp, "me->tag_charset: %d -> %d", me->tag_charset, j );
+ CTRACE(tfp, " (me->UCLYhndl: %d, tag_charset: %d)\n",
+ me->UCLYhndl, tag_charset);
+ me->tag_charset = j;
+ }
+ }
/* this should be done differently */
#if defined(USE_COLOR_STYLE)
@@ -762,10 +766,10 @@ PRIVATE void HTML_start_element ARGS6(
if (url_type == LYNXIMGMAP_URL_TYPE) {
/*
- * These have a are non-standard form, basically
+ * These have a non-standard form, basically
* strip the prefix or the code below would insert
* a nonsense host into the pseudo URL. These
- * should never occur where they would used for
+ * should never occur where they would be used for
* resolution of relative URLs anyway. We can
* also strip the #map part. - kw
*/
diff --git a/src/LYCharSets.c b/src/LYCharSets.c
index 10708495..ec25d9c6 100644
--- a/src/LYCharSets.c
+++ b/src/LYCharSets.c
@@ -77,7 +77,7 @@ PRIVATE CONST char * ISO_Latin1[] = {
"\313", /* capital E, dieresis or umlaut mark (&#203;) - Euml */
"\315", /* capital I, acute accent (&#205;) - Iacute */
"\316", /* capital I, circumflex accent (&#206;) - Icirc */
- "\314", /* capital I, grave accent (&#200;) - Igrave */
+ "\314", /* capital I, grave accent (&#204;) - Igrave */
"\317", /* capital I, dieresis or umlaut mark (&#207;) - Iuml */
"\321", /* capital N, tilde (&#209;) - Ntilde */
"\323", /* capital O, acute accent (&#211;) - Oacute */
diff --git a/src/LYCharUtils.c b/src/LYCharUtils.c
index 54bac073..bb5e8224 100644
--- a/src/LYCharUtils.c
+++ b/src/LYCharUtils.c
@@ -2826,16 +2826,39 @@ PUBLIC void LYHandleMETA ARGS4(
me->outUCLYhndl, me->outUCI);
} else {
/*
- * Hope it's a match, for now. - FM
+ * Cannot translate.
+ * If according to some heuristic the given
+ * charset and the current display character
+ * both are likely to be like ISO-8859 in
+ * structure, pretend we have some kind
+ * of match.
*/
- cp1 = &cp4[10];
- while (*cp1 &&
- isdigit((unsigned char)(*cp1)))
- cp1++;
- *cp1 = '\0';
- StrAllocCopy(me->node_anchor->charset, cp4);
- HTPassEightBitRaw = TRUE;
- HTAlert(me->node_anchor->charset);
+ BOOL given_is_8859
+ = (!strncmp(cp4, "iso-8859-", 9) &&
+ isdigit((unsigned char)cp4[9]));
+ BOOL given_is_8859like
+ = (given_is_8859 || !strncmp(cp4, "windows-", 8) ||
+ !strncmp(cp4, "cp12", 4) ||
+ !strncmp(cp4, "cp-12", 5));
+ BOOL given_and_display_8859like
+ = (given_is_8859like &&
+ (strstr(LYchar_set_names[current_char_set],
+ "ISO-8859") ||
+ strstr(LYchar_set_names[current_char_set],
+ "windows-")));
+
+ if (given_is_8859) {
+ cp1 = &cp4[10];
+ while (*cp1 &&
+ isdigit((unsigned char)(*cp1)))
+ cp1++;
+ *cp1 = '\0';
+ }
+ if (given_and_display_8859like) {
+ StrAllocCopy(me->node_anchor->charset, cp4);
+ HTPassEightBitRaw = TRUE;
+ }
+ HTAlert(*cp4 ? cp4 : me->node_anchor->charset);
}
FREE(cp3);
diff --git a/src/LYCurses.c b/src/LYCurses.c
index ac20eca1..c1216e01 100644
--- a/src/LYCurses.c
+++ b/src/LYCurses.c
@@ -282,6 +282,8 @@ PUBLIC void setHashStyle ARGS5(int,style,int,color,int,cattr,int,mono,char*,elem
ds->code=style;
FREE(ds->name);
ds->name=malloc(sizeof(char)*(strlen(element)+2));
+ if(!ds->name)
+ outofmem(__FILE__, "setHashStyle");
strcpy(ds->name, element);
}
@@ -333,8 +335,10 @@ PUBLIC void curses_w_style ARGS3(
{
/* ABS_OFF is the same as STACK_OFF for the moment */
case STACK_OFF:
- if (last_ptr)
- LYAttrset(win,last_styles[--last_ptr],-1);
+ if (last_ptr) {
+ int last_attr = last_styles[--last_ptr];
+ LYAttrset(win,last_attr,last_attr);
+ }
else
LYAttrset(win,A_NORMAL,-1);
return;
@@ -1023,7 +1027,7 @@ PUBLIC BOOLEAN setup ARGS1(
PUBLIC BOOLEAN setup ARGS1(
char *, terminal)
{
- static char term_putenv[120];
+ static char *term_putenv;
char buffer[120];
char *cp;
#if defined(HAVE_SIZECHANGE) && !defined(USE_SLANG) && defined(NOTDEFINED)
@@ -1060,7 +1064,7 @@ PUBLIC BOOLEAN setup ARGS1(
}
if (terminal != NULL) {
- sprintf(term_putenv, "TERM=%s", terminal);
+ HTSprintf0(&term_putenv, "TERM=%s", terminal);
(void) putenv(term_putenv);
}
@@ -1080,7 +1084,7 @@ PUBLIC BOOLEAN setup ARGS1(
if (strlen(buffer) == 0)
strcpy(buffer,"vt100");
- sprintf(term_putenv,"TERM=%s", buffer);
+ HTSprintf0(&term_putenv,"TERM=%s", buffer);
(void) putenv(term_putenv);
printf("\n%s%s\n", gettext("TERMINAL TYPE IS SET TO"), getenv("TERM"));
sleep(MESSAGESECS);
diff --git a/src/LYDownload.c b/src/LYDownload.c
index 3b813265..65b27de4 100644
--- a/src/LYDownload.c
+++ b/src/LYDownload.c
@@ -480,7 +480,6 @@ PUBLIC int LYdownload_options ARGS2(
/*
* Get a suggested filename.
*/
- StrAllocCopy(downloaded_url, *newfile);
StrAllocCopy(sug_filename, *newfile);
change_sug_filename(sug_filename);
@@ -489,6 +488,7 @@ PUBLIC int LYdownload_options ARGS2(
HTAlert(CANNOT_OPEN_TEMP);
return(-1);
}
+ StrAllocCopy(downloaded_url, *newfile);
LYLocalFileToURL(newfile, tempfile);
LYstrncpy(LYValidDownloadFile,
@@ -503,6 +503,7 @@ PUBLIC int LYdownload_options ARGS2(
fprintf(fp0, "<em>%s</em> %s\n",
gettext("Downloaded link:"),
downloaded_url);
+ FREE(downloaded_url);
fprintf(fp0, "<em>%s</em> %s\n",
gettext("Suggested file name:"),
@@ -554,7 +555,6 @@ PUBLIC int LYdownload_options ARGS2(
* Free off temp copy.
*/
FREE(sug_filename);
- FREE(downloaded_url);
return(0);
}
diff --git a/src/LYForms.c b/src/LYForms.c
index e91f9982..8f0a0984 100644
--- a/src/LYForms.c
+++ b/src/LYForms.c
@@ -600,7 +600,6 @@ PRIVATE int popup_options ARGS7(
OptionType * tmp_ptr;
BOOLEAN ReDraw = FALSE;
int number;
- char buffer[512];
/*
* Initialize the search string buffer. - FM
@@ -943,8 +942,10 @@ redraw:
* We want an intermediate page. - FM
*/
if (((number - 1) * length) == window_offset) {
- sprintf(buffer, ALREADY_AT_OPTION_PAGE, number);
- HTUserMsg(buffer);
+ char *msg = 0;
+ HTSprintf0(&msg, ALREADY_AT_OPTION_PAGE, number);
+ HTUserMsg(msg);
+ FREE(msg);
if (disabled) {
_statusline(FORM_LINK_OPTION_LIST_UNM_MSG);
} else {
@@ -992,9 +993,10 @@ redraw:
/*
* The option already is current. - FM
*/
- sprintf(buffer,
- OPTION_ALREADY_CURRENT, (number + 1));
- HTUserMsg(buffer);
+ char *msg = 0;
+ HTSprintf0(&msg, OPTION_ALREADY_CURRENT, (number + 1));
+ HTUserMsg(msg);
+ free(msg);
if (disabled) {
_statusline(FORM_LINK_OPTION_LIST_UNM_MSG);
} else {
diff --git a/src/LYGetFile.c b/src/LYGetFile.c
index 7fe1df76..7ce9a59d 100644
--- a/src/LYGetFile.c
+++ b/src/LYGetFile.c
@@ -116,9 +116,10 @@ Try_Redirected_URL:
return(NULLFILE);
}
if (value > 65535 || value < 0) {
- char msg[265];
- sprintf(msg, PORT_INVALID, (unsigned long)value);
+ char *msg = 0;
+ HTSprintf0(&msg, PORT_INVALID, (unsigned long)value);
HTAlert(msg);
+ free(msg);
FREE(temp);
return(NULLFILE);
}
@@ -400,12 +401,13 @@ Try_Redirected_URL:
LYAddVisitedLink(doc);
} else {
- char buf[512];
+ char *buf = 0;
- sprintf(buf,
+ HTSprintf0(&buf,
EXECUTION_DISABLED_FOR_FILE,
key_for_func(LYK_OPTIONS));
HTAlert(buf);
+ free(buf);
}
#else /* no exec_links */
HTUserMsg(EXECUTION_NOT_COMPILED);
@@ -1190,12 +1192,13 @@ PUBLIC BOOLEAN exec_ok ARGS3(
*cp != '@' && *cp != '~' && *cp != '$' &&
*cp != '&' && *cp != '+' && *cp != '=' &&
*cp != '\t') {
- char buf[128];
+ char *buf = 0;
- sprintf(buf,
+ HTSprintf0(&buf,
BADCHAR_IN_EXEC_LINK,
*cp);
HTAlert(buf);
+ free(buf);
return FALSE;
}
}
diff --git a/src/LYJump.c b/src/LYJump.c
index cce5611e..5cce7529 100644
--- a/src/LYJump.c
+++ b/src/LYJump.c
@@ -189,9 +189,10 @@ PUBLIC char *LYJump ARGS1(int, key)
while (jtp && jtp->key && jtp->key != key)
jtp = jtp->next;
if (!jtp) {
- char msg[40];
- sprintf(msg, KEY_NOT_MAPPED_TO_JUMP_FILE, key);
+ char *msg = 0;
+ HTSprintf0(&msg, KEY_NOT_MAPPED_TO_JUMP_FILE, key);
HTAlert(msg);
+ free(msg);
return NULL;
}
if (!jtp->table)
diff --git a/src/LYMain.c b/src/LYMain.c
index 29a675fd..30a03d65 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -361,7 +361,7 @@ PUBLIC BOOLEAN LYForceSSLCookiesSecure = FALSE;
PUBLIC BOOLEAN LYNoCc = FALSE;
PUBLIC BOOLEAN LYPreparsedSource = FALSE; /* Show source as preparsed? */
PUBLIC BOOLEAN LYPrependBaseToSource = TRUE;
-PUBLIC BOOLEAN LYPrependCharsetToSource = FALSE;
+PUBLIC BOOLEAN LYPrependCharsetToSource = TRUE;
PUBLIC BOOLEAN LYQuitDefaultYes = QUIT_DEFAULT_YES;
#ifdef DISP_PARTIAL
@@ -680,9 +680,11 @@ PUBLIC int main ARGS2(
#endif /* LOCALE */
/* Set the text message domain. */
#ifdef HAVE_LIBINTL_H
+#ifndef __DJGPP__
bindtextdomain ("lynx", LOCALEDIR);
+#endif /* !__DJGPP__ */
textdomain ("lynx");
-#endif
+#endif /* HAVE_LIBINTL_H */
/*
* Initialize our startup and global variables.
@@ -752,6 +754,9 @@ PUBLIC int main ARGS2(
StrAllocCopy(lynx_version_putenv_command, "LYNX_VERSION=");
StrAllocCat(lynx_version_putenv_command, LYNX_VERSION);
(void) putenv(lynx_version_putenv_command);
+ /* Note: you must not free the data passed to 'putenv()' until you give it
+ * a new value for that variable.
+ */
#endif /* VMS */
if ((cp = getenv("LYNX_TEMP_SPACE")) != NULL)
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index 0ad66d59..71a086e8 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -5082,15 +5082,17 @@ check_add_bookmark_to_self:
goto new_cmd;
case LYK_RAW_TOGGLE:
- if (LYUseDefaultRawMode)
- LYUseDefaultRawMode = FALSE;
- else
- LYUseDefaultRawMode = TRUE;
- HTUserMsg(LYRawMode ? RAWMODE_OFF : RAWMODE_ON);
- HTMLSetCharacterHandling(current_char_set);
- LYRawMode_flag = LYRawMode;
- cmd = LYK_RELOAD;
- goto new_cmd;
+ if (HTLoadedDocumentCharset()) {
+ HTUserMsg(gettext("charset for this document specified explicitely, sorry..."));
+ break;
+ } else {
+ LYUseDefaultRawMode = !LYUseDefaultRawMode;
+ HTUserMsg(LYRawMode ? RAWMODE_OFF : RAWMODE_ON);
+ HTMLSetCharacterHandling(current_char_set);
+ LYRawMode_flag = LYRawMode;
+ cmd = LYK_RELOAD;
+ goto new_cmd;
+ }
case LYK_HEAD:
if (nlinks > 0 &&
diff --git a/src/LYOptions.c b/src/LYOptions.c
index ed8dab58..d4b627e3 100644
--- a/src/LYOptions.c
+++ b/src/LYOptions.c
@@ -3986,26 +3986,6 @@ PUBLIC int gen_options ARGS1(
PutOptValues(fp0, emacs_keys, bool_values);
EndSelect(fp0);
- /* Execution links: SELECT */
-#ifdef ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS
- PutLabel(fp0, gettext("Execution links"));
- BeginSelect(fp0, exec_links_string);
-#ifndef NEVER_ALLOW_REMOTE_EXEC
- PutOptValues(fp0, local_exec
- ? EXEC_ALWAYS
- : (local_exec_on_local_files
- ? EXEC_LOCAL
- : EXEC_NEVER),
- exec_links_values);
-#else
- PutOptValues(fp0, local_exec_on_local_files
- ? EXEC_LOCAL
- : EXEC_NEVER,
- exec_links_values);
-#endif /* !NEVER_ALLOW_REMOTE_EXEC */
- EndSelect(fp0);
-#endif /* ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS */
-
/* Keypad Mode: SELECT */
PutLabel(fp0, gettext("Keypad mode"));
BeginSelect(fp0, keypad_mode_string);
@@ -4109,6 +4089,19 @@ PUBLIC int gen_options ARGS1(
PutOptValues(fp0, vi_keys, bool_values);
EndSelect(fp0);
+ /* Display Character Set: SELECT */
+ PutLabel(fp0, gettext("Display character set"));
+ BeginSelect(fp0, display_char_set_string);
+ for (i = 0; LYchar_set_names[i]; i++) {
+ char temp[10];
+ size_t len = strlen(LYchar_set_names[i]);
+ if (len > cset_len)
+ cset_len = len;
+ sprintf(temp, "%d", i);
+ PutOption(fp0, i==current_char_set, temp, LYchar_set_names[i]);
+ }
+ EndSelect(fp0);
+
/* X Display: INPUT */
PutLabel(fp0, gettext("X Display"));
PutTextInput(fp0, x_display_string, NOTEMPTY(x_display), text_len, "");
@@ -4118,8 +4111,48 @@ PUBLIC int gen_options ARGS1(
*/
fprintf(fp0,"\n <em>%s</em>\n", gettext("Document Layout"));
- /* HTML error tolerance: SELECT */
- PutLabel(fp0, gettext("HTML error tolerance"));
+ /* Assume Character Set: SELECT */
+ /* if (user_mode==ADVANCED_MODE) */
+ {
+ int curval;
+ curval = UCLYhndl_for_unspec;
+
+ /*
+ * FIXME: If bogus value in lynx.cfg, then in old way, that is the
+ * string that was displayed. Now, user will never see that. Good
+ * or bad? I don't know. MRC
+ */
+ if (curval == current_char_set) {
+ /* ok, LYRawMode, so use UCAssume_MIMEcharset */
+ curval = safeUCGetLYhndl_byMIME(UCAssume_MIMEcharset);
+ }
+ PutLabel(fp0, gettext("Assumed document character set"));
+ BeginSelect(fp0, assume_char_set_string);
+ for (i = 0; i < LYNumCharsets; i++) {
+ PutOption(fp0, i==curval,
+ LYCharSet_UC[i].MIMEname,
+ LYCharSet_UC[i].MIMEname);
+ }
+ EndSelect(fp0);
+ }
+
+ /* Raw Mode: ON/OFF */
+ if (LYHaveCJKCharacterSet)
+ /*
+ * Since CJK people hardly mixed with other world
+ * we split the header to make it more readable:
+ * "CJK mode" for CJK display charsets, and "Raw 8-bit" for others.
+ */
+ PutLabel(fp0, gettext("CJK mode"));
+ else
+ PutLabel(fp0, gettext("Raw 8-bit"));
+
+ BeginSelect(fp0, raw_mode_string);
+ PutOptValues(fp0, LYRawMode, bool_values);
+ EndSelect(fp0);
+
+ /* HTML error recovery: SELECT */
+ PutLabel(fp0, gettext("HTML error recovery"));
BeginSelect(fp0, DTD_recovery_string);
PutOptValues(fp0, Old_DTD, DTD_type_values);
EndSelect(fp0);
@@ -4185,64 +4218,6 @@ PUBLIC int gen_options ARGS1(
}
/*
- * Character Set Options
- */
- fprintf(fp0,"\n <em>%s</em>\n", gettext("Character Set Options"));
-
- /* Assume Character Set: SELECT */
- /* if (user_mode==ADVANCED_MODE) */
- {
- int curval;
- curval = UCLYhndl_for_unspec;
-
- /*
- * FIXME: If bogus value in lynx.cfg, then in old way, that is the
- * string that was displayed. Now, user will never see that. Good
- * or bad? I don't know. MRC
- */
- if (curval == current_char_set) {
- /* ok, LYRawMode, so use UCAssume_MIMEcharset */
- curval = safeUCGetLYhndl_byMIME(UCAssume_MIMEcharset);
- }
- PutLabel(fp0, gettext("Assumed document character set"));
- BeginSelect(fp0, assume_char_set_string);
- for (i = 0; i < LYNumCharsets; i++) {
- PutOption(fp0, i==curval,
- LYCharSet_UC[i].MIMEname,
- LYCharSet_UC[i].MIMEname);
- }
- EndSelect(fp0);
- }
-
- /* Display Character Set: SELECT */
- PutLabel(fp0, gettext("Display character set"));
- BeginSelect(fp0, display_char_set_string);
- for (i = 0; LYchar_set_names[i]; i++) {
- char temp[10];
- size_t len = strlen(LYchar_set_names[i]);
- if (len > cset_len)
- cset_len = len;
- sprintf(temp, "%d", i);
- PutOption(fp0, i==current_char_set, temp, LYchar_set_names[i]);
- }
- EndSelect(fp0);
-
- /* Raw Mode: ON/OFF */
- if (LYHaveCJKCharacterSet)
- /*
- * Since CJK people hardly mixed with other world
- * we split the header to make it more readable:
- * "CJK mode" for CJK display charsets, and "Raw 8-bit" for others.
- */
- PutLabel(fp0, gettext("CJK mode"));
- else
- PutLabel(fp0, gettext("Raw 8-bit"));
-
- BeginSelect(fp0, raw_mode_string);
- PutOptValues(fp0, LYRawMode, bool_values);
- EndSelect(fp0);
-
- /*
* File Management Options
*/
fprintf(fp0,"\n <em>%s</em>\n", DIRED_MENU_TITLE);
@@ -4269,6 +4244,26 @@ PUBLIC int gen_options ARGS1(
EndSelect(fp0);
}
+ /* Execution links: SELECT */
+#ifdef ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS
+ PutLabel(fp0, gettext("Execution links"));
+ BeginSelect(fp0, exec_links_string);
+#ifndef NEVER_ALLOW_REMOTE_EXEC
+ PutOptValues(fp0, local_exec
+ ? EXEC_ALWAYS
+ : (local_exec_on_local_files
+ ? EXEC_LOCAL
+ : EXEC_NEVER),
+ exec_links_values);
+#else
+ PutOptValues(fp0, local_exec_on_local_files
+ ? EXEC_LOCAL
+ : EXEC_NEVER,
+ exec_links_values);
+#endif /* !NEVER_ALLOW_REMOTE_EXEC */
+ EndSelect(fp0);
+#endif /* ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS */
+
/*
* Headers transferred to remote server
*/
diff --git a/src/LYStrings.c b/src/LYStrings.c
index 4b37c0dd..f7ff73d9 100644
--- a/src/LYStrings.c
+++ b/src/LYStrings.c
@@ -2603,6 +2603,8 @@ PRIVATE int LYAddToCloset ARGS1(char*, str)
unsigned len = strlen(str);
LYCloset[LYClosetTop] = malloc(len+1);
+ if (!LYCloset[LYClosetTop])
+ outofmem(__FILE__, "LYAddToCloset");
strcpy(LYCloset[LYClosetTop], str);
LYClosetTop = (LYClosetTop + 1) % LYClosetSize;
diff --git a/src/LYTraversal.c b/src/LYTraversal.c
index d358cecc..e83770b0 100644
--- a/src/LYTraversal.c
+++ b/src/LYTraversal.c
@@ -2,6 +2,8 @@
#include <LYGlobalDefs.h>
#include <LYUtils.h>
#include <LYSignal.h>
+#include <LYClean.h>
+#include <LYCurses.h>
#include <LYTraversal.h>
#include <LYexit.h>
@@ -9,19 +11,37 @@
/* routines to handle special traversal feature */
+PRIVATE void final_perror ARGS2(CONST char *,msg, BOOLEAN, clean_flag)
+{
+ int saved_errno = errno;
+ if (LYCursesON) {
+ if (clean_flag)
+ cleanup();
+ else
+ stop_curses();
+ }
+ errno = saved_errno;
+ perror(msg);
+}
+
+PRIVATE void exit_with_perror ARGS1(CONST char *,msg)
+{
+ final_perror(msg, TRUE);
+ exit_immediately(-1);
+}
+
PUBLIC BOOLEAN lookup ARGS1(char *,target)
{
FILE *ifp;
char buffer[200], line[200];
if ((ifp = fopen(TRAVERSE_FILE,"r")) == NULL) {
- if ((ifp = LYNewTxtFile(TRAVERSE_FILE)) == NULL) {
- perror(CANNOT_OPEN_TRAV_FILE);
- exit_immediately(-1);
+ if ((ifp = LYNewTxtFile(TRAVERSE_FILE)) == NULL) {
+ exit_with_perror(CANNOT_OPEN_TRAV_FILE);
} else {
- fclose(ifp);
- return(FALSE);
- }
+ fclose(ifp);
+ return(FALSE);
+ }
}
sprintf(line,"%s\n",target);
@@ -43,8 +63,7 @@ PUBLIC void add_to_table ARGS1(char *,target)
FILE *ifp;
if ((ifp = LYAppendToTxtFile(TRAVERSE_FILE)) == NULL) {
- perror(CANNOT_OPEN_TRAV_FILE);
- exit_immediately(-1);
+ exit_with_perror(CANNOT_OPEN_TRAV_FILE);
}
fprintf(ifp,"%s\n",target);
@@ -58,8 +77,7 @@ PUBLIC void add_to_traverse_list ARGS2(char *,fname, char *,prev_link_name)
FILE *ifp;
if ((ifp = LYAppendToTxtFile(TRAVERSE_FOUND_FILE)) == NULL) {
- perror(CANNOT_OPEN_TRAF_FILE);
- exit_immediately(-1);
+ exit_with_perror(CANNOT_OPEN_TRAF_FILE);
}
fprintf(ifp,"%s\t%s\n",fname, prev_link_name);
@@ -73,10 +91,10 @@ PUBLIC void dump_traversal_history NOARGS
FILE *ifp;
if (nhist <= 0)
- return;
+ return;
if ((ifp = LYAppendToTxtFile(TRAVERSE_FILE)) == NULL) {
- perror(CANNOT_OPEN_TRAV_FILE);
+ final_perror(CANNOT_OPEN_TRAV_FILE, FALSE);
return;
}
@@ -97,8 +115,7 @@ PUBLIC void add_to_reject_list ARGS1(char *,target)
FILE *ifp;
if ((ifp = LYAppendToTxtFile(TRAVERSE_REJECT_FILE)) == NULL) {
- perror(CANNOT_OPEN_REJ_FILE);
- exit_immediately(-1);
+ exit_with_perror(CANNOT_OPEN_REJ_FILE);
}
fprintf(ifp,"%s\n",target);
@@ -122,7 +139,7 @@ PUBLIC BOOLEAN lookup_reject ARGS1(char *,target)
int frag;
if ((ifp = fopen(TRAVERSE_REJECT_FILE,"r")) == NULL){
- return(FALSE);
+ return(FALSE);
}
sprintf(line,"%s\n",target);
@@ -130,17 +147,17 @@ PUBLIC BOOLEAN lookup_reject ARGS1(char *,target)
while (fgets(buffer, 200, ifp) != NULL) {
frag = strlen(buffer) - 1; /* real length, minus trailing null */
ch = buffer[frag - 1]; /* last character in buffer */
- if (frag > 0) { /* if not an empty line */
+ if (frag > 0) { /* if not an empty line */
if (ch == '*') {
- if (frag == 1 || ((strncmp(line,buffer,frag - 1)) == 0)) {
- fclose(ifp);
- return(TRUE);
- }
+ if (frag == 1 || ((strncmp(line,buffer,frag - 1)) == 0)) {
+ fclose(ifp);
+ return(TRUE);
+ }
} else { /* last character = "*" test */
- if (STREQ(line,buffer)) {
- fclose(ifp);
- return(TRUE);
- }
+ if (STREQ(line,buffer)) {
+ fclose(ifp);
+ return(TRUE);
+ }
} /* last character = "*" test */
} /* frag >= 0 */
} /* end while */
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 07d427bd..ffce1d4b 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -1824,8 +1824,8 @@ PUBLIC void statusline ARGS1(
* character set selected, otherwise, strip any escapes. Also,
* make sure text is not longer than the statusline window. - FM
*/
- max_length = ((LYcols - 2) < sizeof(buffer))
- ? (LYcols - 2) : sizeof(buffer)-1;
+ max_length = ((LYcols - 2) < (int)sizeof(buffer))
+ ? (LYcols - 2) : (int)sizeof(buffer)-1;
if ((text[0] != '\0') &&
(LYHaveCJKCharacterSet)) {
/*
@@ -1922,7 +1922,8 @@ PUBLIC void statusline ARGS1(
#else
/* draw the status bar in the STATUS style */
{
- int a=(strncmp(buffer, "Alert", 5) || !hashStyles[s_alert].name ? s_status : s_alert);
+ int a=(strncmp(buffer, ALERT_FORMAT, ALERT_PREFIX_LEN) ||
+ !hashStyles[s_alert].name ? s_status : s_alert);
LynxChangeStyle (a, ABS_ON, 1);
addstr(buffer);
wbkgdset(stdscr,
@@ -2372,8 +2373,8 @@ PUBLIC BOOLEAN LYisLocalAlias ARGS1(
** returns PROXY_URL_TYPE. - FM
**
** If a colon is present but the string segment which
-** precedes it is not being proxied, and we can rule
-** out that what follows the colon is not a port field,
+** precedes it is not being proxied, and we can be sure
+** that what follows the colon is not a port field,
** it returns UNKNOWN_URL_TYPE. Otherwise, it returns
** 0 (not a URL). - FM
*/
@@ -2407,12 +2408,20 @@ PUBLIC int LYCheckForProxyURL ARGS1(
return(PROXY_URL_TYPE);
}
FREE(cp2);
+#if defined (DOSPATH)
+ if (cp[1] == ':')
+ return(0); /* could be drive letter? - kw */
+#endif
cp1++;
- if (isdigit((unsigned char)*cp1)) {
+ if (!*cp) {
+ return(0);
+ } else if (isdigit((unsigned char)*cp1)) {
while (*cp1 && isdigit((unsigned char)*cp1))
cp1++;
if (*cp1 && !LYIsHtmlSep(*cp1))
return(UNKNOWN_URL_TYPE);
+ } else {
+ return(UNKNOWN_URL_TYPE);
}
}
@@ -2478,9 +2487,10 @@ PUBLIC int is_url ARGS1(
* Can't be a URL if it starts with a slash.
* So return immediately for this common case,
* also to avoid false positives if there was
- * a colon later in the string. - KW
+ * a colon later in the string. Also can't be
+ * a URL if it starts with a colon. - KW
*/
- if (LYIsHtmlSep(*cp))
+ if (*cp == ':' || LYIsHtmlSep(*cp))
return(0);
if (compare_type(cp, "news:", 5)) {
@@ -3572,6 +3582,7 @@ PUBLIC void LYCheckMail NOARGS
static BOOL firsttime = TRUE;
static char *mf;
static time_t lastcheck;
+ static time_t lasttime;
static long lastsize;
time_t now;
struct stat st;
@@ -3579,6 +3590,7 @@ PUBLIC void LYCheckMail NOARGS
if (firsttime) {
mf = getenv("MAIL");
firsttime = FALSE;
+ time(&lasttime);
}
if (mf == NULL)
@@ -3589,21 +3601,21 @@ PUBLIC void LYCheckMail NOARGS
return;
lastcheck = now;
- if (stat(mf,&st) < 0) {
+ if ((stat(mf,&st) < 0)
+ || !S_ISREG(st.st_mode)) {
mf = NULL;
return;
}
if (st.st_size > 0) {
- if (st.st_mtime > st.st_atime ||
- (lastsize && st.st_size > lastsize))
+ if (((lasttime != st.st_mtime) && (st.st_mtime > st.st_atime))
+ || ((lastsize != 0) && (st.st_size > lastsize)))
HTUserMsg(HAVE_NEW_MAIL_MSG);
else if (lastsize == 0)
HTUserMsg(HAVE_MAIL_MSG);
- lastsize = st.st_size;
- return;
}
lastsize = st.st_size;
+ lasttime = st.st_mtime;
return;
}
#endif /* VMS */
diff --git a/src/UCAux.c b/src/UCAux.c
index bbe5321c..3c952a33 100644
--- a/src/UCAux.c
+++ b/src/UCAux.c
@@ -13,11 +13,16 @@ PUBLIC BOOL UCCanUniTranslateFrom ARGS1(
{
if (from < 0)
return NO;
- if (LYCharSet_UC[from].enc == UCT_ENC_7BIT ||
- LYCharSet_UC[from].enc == UCT_ENC_UTF8)
- return YES;
- if (LYCharSet_UC[from].codepoints & (UCT_CP_SUBSETOF_LAT1))
- return YES;
+ if (LYCharSet_UC[from].enc == UCT_ENC_CJK)
+ return NO;
+ if (!strcmp(LYCharSet_UC[from].MIMEname, "x-transparent"))
+ return NO;
+ if (from == LATIN1) {
+ if (LYCharSet_UC[from].codepoints & (UCT_CP_SUPERSETOF_LAT1))
+ return YES;
+ }
+
+ /* others YES, but check for lost tables to be sure */
return (LYCharSet_UC[from].UChndl >= 0);
}
@@ -123,7 +128,7 @@ PUBLIC BOOL UCNeedNotTranslate ARGS2(
if (HTCJK == JAPANESE &&
(!strcmp(fromname, "euc-jp") ||
!strcmp(fromname, "shift_jis")))
- return YES; /* ??? */
+ return YES; /* translate internally by lynx, no unicode */
return NO; /* If not handled by (from == to) above. */
}
return NO;
@@ -151,7 +156,9 @@ PUBLIC void UCSetTransParams ARGS5(
CONST LYUCcharset*, p_out)
{
CTRACE(tfp, "UCSetTransParams: from %s(%d) to %s(%d)\n",
- p_in->MIMEname, p_in->UChndl, p_out->MIMEname, p_out->UChndl);
+/* p_in->MIMEname, p_in->UChndl, p_out->MIMEname, p_out->UChndl); */
+ p_in->MIMEname, UCGetLYhndl_byMIME(p_in->MIMEname),
+ p_out->MIMEname, UCGetLYhndl_byMIME(p_out->MIMEname));
/*
** Initialize this element to FALSE, and set it TRUE
diff --git a/src/UCdomap.c b/src/UCdomap.c
index cf89b4cf..36b8b5de 100644
--- a/src/UCdomap.c
+++ b/src/UCdomap.c
@@ -48,6 +48,7 @@
#include <cp869_uni.h> /* DosGreek2 (cp869) */
#include <def7_uni.h> /* 7 bit approximations */
#include <dmcs_uni.h> /* DEC Multinational */
+#include <hp_uni.h> /* HP Roman8 */
#include <iso01_uni.h> /* ISO Latin 1 */
#include <iso02_uni.h> /* ISO Latin 2 */
#include <iso03_uni.h> /* ISO Latin 3 */
@@ -2022,6 +2023,7 @@ PUBLIC void UCInit NOARGS
UC_CHARSET_SETUP_dec_mcs; /* DEC Multinational */
UC_CHARSET_SETUP_macintosh; /* Macintosh (8 bit) */
UC_CHARSET_SETUP_next; /* NeXT character set */
+ UC_CHARSET_SETUP_hp_roman8; /* HP Roman8 */
UC_CHARSET_SETUP_viscii; /* Vietnamese (VISCII) */
diff --git a/src/chrtrans/MAKEW32.BAT b/src/chrtrans/MAKEW32.BAT
index c8714cc4..a5504bc7 100644
--- a/src/chrtrans/MAKEW32.BAT
+++ b/src/chrtrans/MAKEW32.BAT
@@ -18,8 +18,9 @@ makeuctb cp862_uni.tbl > cp862_uni.h
makeuctb cp864_uni.tbl > cp864_uni.h
makeuctb cp866_uni.tbl > cp866_uni.h
makeuctb cp869_uni.tbl > cp869_uni.h
-makeuctb def7_uni.tbl > def7_uni.h
+makeuctb def7_uni.tbl > def7_uni.h
makeuctb dmcs_uni.tbl > dmcs_uni.h
+makeuctb hpuni.tbl > hpuni.h
makeuctb iso01_uni.tbl > iso01_uni.h
makeuctb iso02_uni.tbl > iso02_uni.h
makeuctb iso03_uni.tbl > iso03_uni.h
diff --git a/src/chrtrans/build-chrtrans.com b/src/chrtrans/build-chrtrans.com
index cb015d18..b0089033 100644
--- a/src/chrtrans/build-chrtrans.com
+++ b/src/chrtrans/build-chrtrans.com
@@ -84,6 +84,8 @@ $ define/user sys$output 'CHRwhere'cp1252_uni.h !WinLatin1 (cp1252)
$ makeuctb cp1252_uni.tbl
$ define/user sys$output 'CHRwhere'cp437_uni.h !DosLatinUS (cp437)
$ makeuctb cp437_uni.tbl
+$ define/user sys$output 'CHRwhere'hp_uni.h !HP Roman8
+$ makeuctb hp_uni.tbl
$ define/user sys$output 'CHRwhere'dmcs_uni.h !DEC Multinational
$ makeuctb dmcs_uni.tbl
$ define/user sys$output 'CHRwhere'mac_uni.h !Macintosh (8 bit)
diff --git a/src/chrtrans/hp_uni.tbl b/src/chrtrans/hp_uni.tbl
new file mode 100644
index 00000000..58025511
--- /dev/null
+++ b/src/chrtrans/hp_uni.tbl
@@ -0,0 +1,212 @@
+# The MIME name of this charset.
+Mhp-roman8
+
+# Name as a Display Charset (used on Options screen)
+OHP Roman8
+
+# This is not the default font!
+D0
+
+#
+# Name: HP Roman8 to Unicode
+# Date: 1999-01-09
+# Authors: Christian "naddy" Weisgerber <naddy@mips.rhein-neckar.de>
+# Mapping by Roman Czyborra,
+# <URL:http://czyborra.com/charsets/codepages.html#HP-Roman8>
+#
+
+0x20-0x7E idem # ASCII
+
+#0x20 U+0020 # SPACE
+#0x21 U+0021 # EXCLAMATION MARK
+#0x22 U+0022 # QUOTATION MARK
+#0x23 U+0023 # NUMBER SIGN
+#0x24 U+0024 # DOLLAR SIGN
+#0x25 U+0025 # PERCENT SIGN
+#0x26 U+0026 # AMPERSAND
+#0x27 U+0027 # APOSTROPHE
+#0x28 U+0028 # LEFT PARENTHESIS
+#0x29 U+0029 # RIGHT PARENTHESIS
+#0x2A U+002A # ASTERISK
+#0x2B U+002B # PLUS SIGN
+#0x2C U+002C # COMMA
+#0x2D U+002D # HYPHEN-MINUS
+#0x2E U+002E # FULL STOP
+#0x2F U+002F # SOLIDUS
+#0x30 U+0030 # DIGIT ZERO
+#0x31 U+0031 # DIGIT ONE
+#0x32 U+0032 # DIGIT TWO
+#0x33 U+0033 # DIGIT THREE
+#0x34 U+0034 # DIGIT FOUR
+#0x35 U+0035 # DIGIT FIVE
+#0x36 U+0036 # DIGIT SIX
+#0x37 U+0037 # DIGIT SEVEN
+#0x38 U+0038 # DIGIT EIGHT
+#0x39 U+0039 # DIGIT NINE
+#0x3A U+003A # COLON
+#0x3B U+003B # SEMICOLON
+#0x3C U+003C # LESS-THAN SIGN
+#0x3D U+003D # EQUALS SIGN
+#0x3E U+003E # GREATER-THAN SIGN
+#0x3F U+003F # QUESTION MARK
+#0x40 U+0040 # COMMERCIAL AT
+#0x41 U+0041 # LATIN CAPITAL LETTER A
+#0x42 U+0042 # LATIN CAPITAL LETTER B
+#0x43 U+0043 # LATIN CAPITAL LETTER C
+#0x44 U+0044 # LATIN CAPITAL LETTER D
+#0x45 U+0045 # LATIN CAPITAL LETTER E
+#0x46 U+0046 # LATIN CAPITAL LETTER F
+#0x47 U+0047 # LATIN CAPITAL LETTER G
+#0x48 U+0048 # LATIN CAPITAL LETTER H
+#0x49 U+0049 # LATIN CAPITAL LETTER I
+#0x4A U+004A # LATIN CAPITAL LETTER J
+#0x4B U+004B # LATIN CAPITAL LETTER K
+#0x4C U+004C # LATIN CAPITAL LETTER L
+#0x4D U+004D # LATIN CAPITAL LETTER M
+#0x4E U+004E # LATIN CAPITAL LETTER N
+#0x4F U+004F # LATIN CAPITAL LETTER O
+#0x50 U+0050 # LATIN CAPITAL LETTER P
+#0x51 U+0051 # LATIN CAPITAL LETTER Q
+#0x52 U+0052 # LATIN CAPITAL LETTER R
+#0x53 U+0053 # LATIN CAPITAL LETTER S
+#0x54 U+0054 # LATIN CAPITAL LETTER T
+#0x55 U+0055 # LATIN CAPITAL LETTER U
+#0x56 U+0056 # LATIN CAPITAL LETTER V
+#0x57 U+0057 # LATIN CAPITAL LETTER W
+#0x58 U+0058 # LATIN CAPITAL LETTER X
+#0x59 U+0059 # LATIN CAPITAL LETTER Y
+#0x5A U+005A # LATIN CAPITAL LETTER Z
+#0x5B U+005B # LEFT SQUARE BRACKET
+#0x5C U+005C # REVERSE SOLIDUS
+#0x5D U+005D # RIGHT SQUARE BRACKET
+#0x5E U+005E # CIRCUMFLEX ACCENT
+#0x5F U+005F # LOW LINE
+#0x60 U+0060 # GRAVE ACCENT
+#0x61 U+0061 # LATIN SMALL LETTER A
+#0x62 U+0062 # LATIN SMALL LETTER B
+#0x63 U+0063 # LATIN SMALL LETTER C
+#0x64 U+0064 # LATIN SMALL LETTER D
+#0x65 U+0065 # LATIN SMALL LETTER E
+#0x66 U+0066 # LATIN SMALL LETTER F
+#0x67 U+0067 # LATIN SMALL LETTER G
+#0x68 U+0068 # LATIN SMALL LETTER H
+#0x69 U+0069 # LATIN SMALL LETTER I
+#0x6A U+006A # LATIN SMALL LETTER J
+#0x6B U+006B # LATIN SMALL LETTER K
+#0x6C U+006C # LATIN SMALL LETTER L
+#0x6D U+006D # LATIN SMALL LETTER M
+#0x6E U+006E # LATIN SMALL LETTER N
+#0x6F U+006F # LATIN SMALL LETTER O
+#0x70 U+0070 # LATIN SMALL LETTER P
+#0x71 U+0071 # LATIN SMALL LETTER Q
+#0x72 U+0072 # LATIN SMALL LETTER R
+#0x73 U+0073 # LATIN SMALL LETTER S
+#0x74 U+0074 # LATIN SMALL LETTER T
+#0x75 U+0075 # LATIN SMALL LETTER U
+#0x76 U+0076 # LATIN SMALL LETTER V
+#0x77 U+0077 # LATIN SMALL LETTER W
+#0x78 U+0078 # LATIN SMALL LETTER X
+#0x79 U+0079 # LATIN SMALL LETTER Y
+#0x7A U+007A # LATIN SMALL LETTER Z
+#0x7B U+007B # LEFT CURLY BRACKET
+#0x7C U+007C # VERTICAL LINE
+#0x7D U+007D # RIGHT CURLY BRACKET
+#0x7E U+007E # TILDE
+
+0xA0 U+00A0 # NO-BREAK SPACE
+0xA1 U+00C0 # LATIN CAPITAL LETTER A WITH GRAVE
+0xA2 U+00C2 # LATIN CAPITAL LETTER A WITH CIRCUMFLEX
+0xA3 U+00C8 # LATIN CAPITAL LETTER E WITH GRAVE
+0xA4 U+00CA # LATIN CAPITAL LETTER E WITH CIRCUMFLEX
+0xA5 U+00CB # LATIN CAPITAL LETTER E WITH DIAERESIS
+0xA6 U+00CE # LATIN CAPITAL LETTER I WITH CIRCUMFLEX
+0xA7 U+00CF # LATIN CAPITAL LETTER I WITH DIAERESIS
+0xA8 U+00B4 # ACUTE ACCENT
+0xA9 U+02CB # MODIFIER LETTER GRAVE ACCENT
+0xAA U+02C6 # MODIFIER LETTER CIRCUMFLEX ACCENT
+0xAB U+00A8 # DIAERESIS
+0xAC U+02DC # SMALL TILDE
+0xAD U+00D9 # LATIN CAPITAL LETTER U WITH GRAVE
+0xAE U+00DB # LATIN CAPITAL LETTER U WITH CIRCUMFLEX
+0xAF U+20A4 # LIRA SIGN
+0xB0 U+00AF # MACRON
+0xB1 U+00DD # LATIN CAPITAL LETTER Y WITH ACUTE
+0xB2 U+00FD # LATIN SMALL LETTER Y WITH ACUTE
+0xB3 U+00B0 # DEGREE SIGN
+0xB4 U+00C7 # LATIN CAPITAL LETTER C WITH CEDILLA
+0xB5 U+00E7 # LATIN SMALL LETTER C WITH CEDILLA
+0xB6 U+00D1 # LATIN CAPITAL LETTER N WITH TILDE
+0xB7 U+00F1 # LATIN SMALL LETTER N WITH TILDE
+0xB8 U+00A1 # INVERTED EXCLAMATION MARK
+0xB9 U+00BF # INVERTED QUESTION MARK
+0xBA U+00A4 # CURRENCY SIGN
+0xBB U+00A3 # POUND SIGN
+0xBC U+00A5 # YEN SIGN
+0xBD U+00A7 # SECTION SIGN
+0xBE U+0192 # LATIN SMALL LETTER F WITH HOOK
+0xBF U+00A2 # CENT SIGN
+0xC0 U+00E2 # LATIN SMALL LETTER A WITH CIRCUMFLEX
+0xC1 U+00EA # LATIN SMALL LETTER E WITH CIRCUMFLEX
+0xC2 U+00F4 # LATIN SMALL LETTER O WITH CIRCUMFLEX
+0xC3 U+00FB # LATIN SMALL LETTER U WITH CIRCUMFLEX
+0xC4 U+00E1 # LATIN SMALL LETTER A WITH ACUTE
+0xC5 U+00E9 # LATIN SMALL LETTER E WITH ACUTE
+0xC6 U+00F3 # LATIN SMALL LETTER O WITH ACUTE
+0xC7 U+00FA # LATIN SMALL LETTER U WITH ACUTE
+0xC8 U+00E0 # LATIN SMALL LETTER A WITH GRAVE
+0xC9 U+00E8 # LATIN SMALL LETTER E WITH GRAVE
+0xCA U+00F2 # LATIN SMALL LETTER O WITH GRAVE
+0xCB U+00F9 # LATIN SMALL LETTER U WITH GRAVE
+0xCC U+00E4 # LATIN SMALL LETTER A WITH DIAERESIS
+0xCD U+00EB # LATIN SMALL LETTER E WITH DIAERESIS
+0xCE U+00F6 # LATIN SMALL LETTER O WITH DIAERESIS
+0xCF U+00FC # LATIN SMALL LETTER U WITH DIAERESIS
+0xD0 U+00C5 # LATIN CAPITAL LETTER A WITH RING ABOVE
+0xD1 U+00EE # LATIN SMALL LETTER I WITH CIRCUMFLEX
+0xD2 U+00D8 # LATIN CAPITAL LETTER O WITH STROKE
+0xD3 U+00C6 # LATIN CAPITAL LETTER AE
+0xD4 U+00E5 # LATIN SMALL LETTER A WITH RING ABOVE
+0xD5 U+00ED # LATIN SMALL LETTER I WITH ACUTE
+0xD6 U+00F8 # LATIN SMALL LETTER O WITH STROKE
+0xD7 U+00E6 # LATIN SMALL LETTER AE
+0xD8 U+00C4 # LATIN CAPITAL LETTER A WITH DIAERESIS
+0xD9 U+00EC # LATIN SMALL LETTER I WITH GRAVE
+0xDA U+00D6 # LATIN CAPITAL LETTER O WITH DIAERESIS
+0xDB U+00DC # LATIN CAPITAL LETTER U WITH DIAERESIS
+0xDC U+00C9 # LATIN CAPITAL LETTER E WITH ACUTE
+0xDD U+00EF # LATIN SMALL LETTER I WITH DIAERESIS
+0xDE U+00DF # LATIN SMALL LETTER SHARP S
+0xDF U+00D4 # LATIN CAPITAL LETTER O WITH CIRCUMFLEX
+0xE0 U+00C1 # LATIN CAPITAL LETTER A WITH ACUTE
+0xE1 U+00C3 # LATIN CAPITAL LETTER A WITH TILDE
+0xE2 U+00E3 # LATIN SMALL LETTER A WITH TILDE
+0xE3 U+00D0 # LATIN CAPITAL LETTER ETH
+0xE4 U+00F0 # LATIN SMALL LETTER ETH
+0xE5 U+00CD # LATIN CAPITAL LETTER I WITH ACUTE
+0xE6 U+00CC # LATIN CAPITAL LETTER I WITH GRAVE
+0xE7 U+00D3 # LATIN CAPITAL LETTER O WITH ACUTE
+0xE8 U+00D2 # LATIN CAPITAL LETTER O WITH GRAVE
+0xE9 U+00D5 # LATIN CAPITAL LETTER O WITH TILDE
+0xEA U+00F5 # LATIN SMALL LETTER O WITH TILDE
+0xEB U+0160 # LATIN CAPITAL LETTER S WITH CARON
+0xEC U+0161 # LATIN SMALL LETTER S WITH CARON
+0xED U+00DA # LATIN CAPITAL LETTER U WITH ACUTE
+0xEE U+0178 # LATIN CAPITAL LETTER Y WITH DIAERESIS
+0xEF U+00FF # LATIN SMALL LETTER Y WITH DIAERESIS
+0xF0 U+00DE # LATIN CAPITAL LETTER THORN
+0xF1 U+00FE # LATIN SMALL LETTER THORN
+0xF2 U+00B7 # MIDDLE DOT
+0xF3 U+00B5 # MICRO SIGN
+0xF4 U+00B6 # PILCROW SIGN
+0xF5 U+00BE # VULGAR FRACTION THREE QUARTERS
+0xF6 U+2014 # EM DASH
+0xF7 U+00BC # VULGAR FRACTION ONE QUARTER
+0xF8 U+00BD # VULGAR FRACTION ONE HALF
+0xF9 U+00AA # FEMININE ORDINAL INDICATOR
+0xFA U+00BA # MASCULINE ORDINAL INDICATOR
+0xFB U+00AB # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
+0xFC U+25A0 # BLACK SQUARE
+0xFD U+00BB # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
+0xFE U+00B1 # PLUS-MINUS SIGN
+
+## EOF ##
diff --git a/src/chrtrans/makefile.dos b/src/chrtrans/makefile.dos
index 3abe6b58..6e335a09 100644
--- a/src/chrtrans/makefile.dos
+++ b/src/chrtrans/makefile.dos
@@ -45,6 +45,7 @@ TABLES= \
cp869_uni.h \
def7_uni.h \
dmcs_uni.h \
+ hp_uni.h \
iso01_uni.h \
iso02_uni.h \
iso03_uni.h \
diff --git a/src/chrtrans/makefile.in b/src/chrtrans/makefile.in
index 37bd948d..ece1dac9 100644
--- a/src/chrtrans/makefile.in
+++ b/src/chrtrans/makefile.in
@@ -64,6 +64,7 @@ TABLES= \
cp869_uni.h \
def7_uni.h \
dmcs_uni.h \
+ hp_uni.h \
iso01_uni.h \
iso02_uni.h \
iso03_uni.h \
@@ -126,6 +127,7 @@ cp866_uni.h: $(srcdir)/cp866_uni.tbl makeuctb$x
cp869_uni.h: $(srcdir)/cp869_uni.tbl makeuctb$x
def7_uni.h: $(srcdir)/def7_uni.tbl makeuctb$x
dmcs_uni.h: $(srcdir)/dmcs_uni.tbl makeuctb$x
+hp_uni.h: $(srcdir)/hp_uni.tbl makeuctb$x
iso01_uni.h: $(srcdir)/iso01_uni.tbl makeuctb$x
iso02_uni.h: $(srcdir)/iso02_uni.tbl makeuctb$x
iso03_uni.h: $(srcdir)/iso03_uni.tbl makeuctb$x
diff --git a/src/makefile.dsl b/src/makefile.dsl
index f5cfe76b..64c14f1d 100644
--- a/src/makefile.dsl
+++ b/src/makefile.dsl
@@ -9,16 +9,17 @@ LYLeaks.o LYexit.o LYJump.o LYList.o LYCgi.o LYTraversal.o \
LYEditmap.o LYCharSets.o LYCharUtils.o LYMap.o LYCookie.o LYExtern.o \
LYStyle.o LYHash.o
-CFLAGS= $(MCFLAGS) -I. -I.. $(SLANGINC)
+CFLAGS= $(MCFLAGS) $(INTLFLAGS) -I. -I.. $(SLANGINC)
CC = gcc
MCFLAGS = -O2 -DDISP_PARTIAL -DUSE_ZLIB -DUSE_EXTERNALS \
-DUSE_SLANG -DDJGPP_KEYHANDLER -DACCESS_AUTH -DNO_CUSERID \
--DNOUSERS -DDOSPATH -DNO_TTYTYPE -DNO_UTMP -I../WWW/library/implement -I../djgpp/tcplib/include \
--I./chrtrans -I../djgpp/tcplib/include/tcp
-WWWLIB = ../WWW/library/djgpp/libwww.a ../djgpp/tcplib/obj/libtcp.a
-LIBS= -lslang -lz
+-DNOUSERS -DDOSPATH -DNO_TTYTYPE -DNO_UTMP -I../WWW/Library/Implementation \
+-I../djgpp/tcplib/include -I./chrtrans -I../djgpp/tcplib/include/tcp
+WWWLIB = ../WWW/Library/djgpp/libwww.a ../djgpp/tcplib/obj/libtcp.a
+LIBS= -lslang -lz # -lintl
CHRTR= ./chrtrans/
+#INTLFLAGS = -DHAVE_GETTEXT -DHAVE_LIBINTL_H
all: lynx.exe
diff --git a/src/makefile.in b/src/makefile.in
index 21addeff..56b8c944 100644
--- a/src/makefile.in
+++ b/src/makefile.in
@@ -143,6 +143,7 @@ TABLES= \
$(CHRTR)cp869_uni.h \
$(CHRTR)def7_uni.h \
$(CHRTR)dmcs_uni.h \
+ $(CHRTR)hp_uni.h \
$(CHRTR)iso01_uni.h \
$(CHRTR)iso02_uni.h \
$(CHRTR)iso03_uni.h \