I've thought about another thing that might influence handling the
documents: unrecognized charset is assumed to be koi8-r (in lynx.cfg; I'm
attaching lynx.cfg printed out from the Options screen). I tried to start
lynx as follows and then to follow the link with 'x' and it worked
excellently!
$ lynx --assume-charset windows-1251 --assume-unrec-charset windows-1251
sun.ru
Is it it possible that the problem is that the second document's charset
provided by the server is misspelled. But if so, why does reloading it (on
step 3) changes anything? And does it mean that no charset information is
provided for the first document?
Some other observations:
1) In the situation described above following the link with Enter also
works. Probably that's because for this link there is no difference
between 'x' and Enter in all cases because the target document has
no-cache attribute.
2) starting with
$lynx --assume-unrec-charset windows-1251 sun.ru
doesn't show the main page in the right way, but following the link
results in the second page displayed in the right way.
Almost everything is clear now. But I still don't understand why reloading
helps with the second page when starting with assume-charset windows-1251
(and assume-unrec-charset is koi8-r - set in lynx.cfg).
Ivan Z.
Lynx.cfg Information (Lynx Version 2.8.3dev.14)
The following is read from your lynx.cfg file.
Please read the distribution lynx.cfg for more comments.
RELOAD THE CHANGES
#Your primary configuration /etc/lynx.cfg
STARTFILE:http://lynx.browser.org/
HELPFILE:file://localhost/usr/share/lynx/lynx_help/lynx_help_main.html
DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
SAVE_SPACE:/tmp/
CHARACTER_SET:koi8-r
ASSUME_CHARSET:koi8-r
ASSUME_LOCAL_CHARSET:koi8-r
ASSUME_UNREC_CHARSET:koi8-r
PREFERRED_LANGUAGE:ru,en
PREFERRED_CHARSET:KOI8-R
NNTPSERVER:news
LIST_NEWS_NUMBERS:TRUE
LIST_NEWS_DATES:TRUE
NEWS_POSTING:TRUE
LYNX_SIG_FILE:.lynxsig
USE_MOUSE:TRUE
SYSTEM_MAIL:/usr/sbin/sendmail
SYSTEM_MAIL_FLAGS:-t -oi
DEFAULT_BOOKMARK_FILE:lynx_bookmarks.html
DEFAULT_EDITOR:/usr/bin/joe
SYSTEM_EDITOR:/usr/bin/joe
MINIMAL_COMMENTS:TRUE
XLOADIMAGE_COMMAND:xv %s &