lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] lynx does not check charset on reload


From: Thomas Dickey
Subject: Re: [Lynx-dev] lynx does not check charset on reload
Date: Tue, 03 Jan 2012 17:11:49 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Jan 03, 2012 at 04:51:05PM +0100, Stanislav Brabec wrote:
> Thomas Dickey wrote in Tue Dec 20, 2011 at 20:21 -0500:
> > On Tue, Dec 20, 2011 at 06:14:25PM +0100, Stanislav Brabec wrote:
> > > Thomas Dickey wrote:
> > > > On Mon, Dec 19, 2011 at 04:20:26PM +0100, Stanislav Brabec wrote:
> > > > > Hallo.
> > > > > 
> > > > > lynx-2.8.7 (rel. 2) does not check charset header for changes on 
> > > > > reload.
> > > > > 
> > > > > It causes page corruption in following situation:
> > > > > 
> > > > > 1. Enter URL.
> > > > > 2. Server has problems and returns an error message with a dumb 
> > > > > charset
> > > > >    (ASCII, ISO-8859-1).
> > > > > 3. Reload page.
> > > > > 4. Server returns correct page that has a different charset than the
> > > > >    previous error message (e. g. UTF-8).
> > > > 
> > > > I see... Is this something that's easy to reproduce with a particular
> > > > server?  (If not, I'll have to set something up to be sure I'm fixing
> > > > the right thing).
> > > 
> > > No. The server where it occurred presents errors rarely. If you send a
> > > patch, I guess I will be able to confirm the fix in a week or so.
> > > 
> > > You can change configuration of your server between reloads, or you can
> > > use apache MultiView feature and rename file from .iso8859-1 to .utf8.
> > 
> > well, _here_, I can see half of the problem.  If I change the default
> > charset on the server and restart it between reloads, lynx switches
> > from ISO-8859-1 to UTF-8, but doesn't go the other way.  That might
> > be the same issue as your report.  I can take a closer look once I've
> > got my current xterm patch complete this week.
> > 
> Today I have seen the error on affected server again.
> Error message "IIS 7.0 Detailed Error - 503.4 - Service Unavailable" had
> charset utf-8. Valid contents on reload had charset windows-1250.
> 
> So I can fix the reproducer above:
> before reload: utf-8 (error message)
> after reload: windows-1250 (corrupted valid contents)

thanks.  I haven't forgotten your report, but have been slow to finish
my xterm changes.  (I was able to reproduce the problem by changing the
server's charset and restarting it).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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