Description

In requests.py, the test

            # Add iso-8859-1 if needed
            if (not '*' in accept_charset and
                not 'iso-8859-1' in accept_charset):
                accept_charset += ',iso-8859-1'

uses "in" to test if 'iso-8859-1' is a substring of accept_charset if '*' does not appear in accept_charset. This test fails in Python version 2.2.2.

Steps to reproduce

  1. Request a page from the "links" browser on a MoinMoin 1.3 installation using Python 2.2.2.

Details

MoinMoin Version

1.3.1

OS and Version

RedHat 9.0

Python Version

2.2.x

Server Setup

Apache 2.0.48

Server Details

Workaround

Upgrade to Python 2.3.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/CharSetTestUsesStringInString (last edited 2007-10-29 19:19:59 by localhost)