lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev patch: Textarea editing and charset


From: Klaus Weide
Subject: Re: lynx-dev patch: Textarea editing and charset
Date: Sat, 9 Oct 1999 09:36:31 -0500 (CDT)

On Sat, 9 Oct 1999, Marek Kubita wrote:

> about two weeks ago I have reported a bug in 2.8.2's textarea external
> editing:  lines added in an external editor are always handled as
> ISO-8859-1 text.  Now I have verified that the bug is still present in
> 2.8.3dev10 - here is one line patch for it:
> 
> *** GridText.c.283-dev10        Wed Sep 29 13:40:39 1999
> --- GridText.c  Sat Oct  9 09:58:34 1999
> ***************
> *** 10663,10666 ****
> --- 10663,10667 ----
>       f->no_cache        = anchor->input_field->no_cache;
>       f->disabled        = anchor->input_field->disabled;
> +     f->value_cs        = anchor->input_field->value_cs;
> 

Actually that should be

  +     f->value_cs        = current_char_set;

instead.  Similar logic is used in LYForms.c for line-editing
of input fields.

Normally anchor->input_field->value_cs should already be initialized
to have the same value as current_char_set, but there can be some
situations where that's not the case.  (E.g. if you have just changed
the d.c.s. in the 'O'ptions screen, and the document containing the
form wasn't reloaded as a result of that - probably because it was
not the top one.)

    Klaus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]