You are here: Foswiki>Tasks Web>Item5777 (18 Jun 2012, PaulHarvey)Edit Attach

Item5777: FormattingTests fail if selected charset is not iso-8859-1

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: UnitTestContrib
Branches:
Reported By: TWiki:Main.CrawfordCurrie
Waiting For:
Last Change By: PaulHarvey
The following lines in Render.pm
     # For most common alphabetic-only character encodings (i.e. iso-8859-*),
    # remove non-alpha characters 
    if( !defined($TWiki::cfg{Site}{CharSet}) ||
          $TWiki::cfg{Site}{CharSet} =~ /^iso-?8859-?/i ) {
        $anchorName =~ s/[^$TWiki::regex{mixedAlphaNum}]+/_/g;
    }

ensure that the FormattingTests in the UnitTestContrib fail if you use a non-iso-8859-1 charset.

This impacts other tests as well, which can give misleading failures that take ages to track down.

TWikiFnTestCase should be modified to enforce a setting for the site charset (and turn off locales). These features should be the subject of other tests.

-- TWiki:Main/CrawfordCurrie - 14 Jul 2008

This is no longer the case. At least, FormattingTests pass for me when using utf-8. Closing.

-- PaulHarvey - 18 Jun 2012 - 08:40

ItemTemplate edit

Summary FormattingTests fail if selected charset is not iso-8859-1
ReportedBy TWiki:Main.CrawfordCurrie
Codebase
SVN Range TWiki-5.0.0, Wed, 09 Jul 2008, build 17004
AppliesTo Engine
Component UnitTestContrib
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r3 - 18 Jun 2012, PaulHarvey
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy