[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH 2.8.5-dev14] display charset switch
From: |
Ilya Zakharevich |
Subject: |
lynx-dev [PATCH 2.8.5-dev14] display charset switch |
Date: |
Tue, 4 Mar 2003 02:39:40 -0800 |
User-agent: |
Mutt/1.4i |
If a document was loaded some time ago, and we load it again, the
display charset switch logic was missing this case.
Enjoy,
Ilya
--- ./WWW/Library/Implementation/SGML.c~ Tue Feb 4 18:00:16 2003
+++ ./WWW/Library/Implementation/SGML.c Tue Mar 4 00:15:28 2003
@@ -4459,6 +4459,19 @@ PUBLIC HTStream* SGML_new ARGS3(
context->inUCLYhndl = HTAnchor_getUCLYhndl(anchor,
UCT_STAGE_PARSER);
}
+#ifdef CAN_SWITCH_DISPLAY_CHARSET /* Allow a switch to a more suitable display
charset */
+ else if (anchor->UCStages
+ && anchor->UCStages->s[UCT_STAGE_PARSER].LYhndl >= 0
+ && anchor->UCStages->s[UCT_STAGE_PARSER].LYhndl !=
current_char_set ) {
+ int o = anchor->UCStages->s[UCT_STAGE_PARSER].LYhndl;
+
+ anchor->UCStages->s[UCT_STAGE_PARSER].LYhndl = -1; /* Force reset */
+ HTAnchor_resetUCInfoStage(anchor, o, UCT_STAGE_PARSER,
+ /* Preserve change this: */
+ anchor->UCStages->s[UCT_STAGE_PARSER].lock);
+ }
+#endif
+
context->inUCI = HTAnchor_getUCInfoStage(anchor,
UCT_STAGE_PARSER);
set_chartrans_handling(context, anchor, -1);
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev [PATCH 2.8.5-dev14] display charset switch,
Ilya Zakharevich <=