• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4097: Unit test: Use of uninitialized value in pattern match (m//) at /var/www/twiki/lib/TWiki/Sandbox.pm line 192

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   minor  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Running units tests 5.6.1 (and maybe also 5.8)

Use of uninitialized value in pattern match (m//) at /var/www/twiki/lib/TWiki/Sandbox.pm line 192

-- TWiki:Main/KennethLavrsen - 21 May 2007

First I was going to "fix" this by adding a if ( defined $TWiki::cfg{Site}{CharSet} && at line 192 in Sandbox.pm

But there are many more places in the code where $TWiki::cfg{Site}{CharSet} is assumed to be defined. I think more bugs are luring below the hood.

Can someone please explain how this is supposed to work and where/when this is defined?

On none of My Twikis installations do I get the $TWiki::cfg{Site}{CharSet} in my LocalSite.cfg.

it is not very transpartent what is happening in this area.

-- TWiki:Main.KennethLavrsen - 27 May 2007

seems to be a problem with $TWiki::cfg{Site}{CharSet} not being set? duplicate of Item4094 ?

WN

ok, not a "duplicate" because this repors a failure in the unit tests. so, this bug is confirmed (unit test failure) and other is waiting for feedback (about how to fix it)

WN

It doesn't report a failure, it reports a warning.

CharSet is not a critical setting; TWiki should run without it, and it should not be defaulted.

The point of critical settings is for configure to set the absolute minimum that TWiki requires to run, as part of the bootstrapping process. A second run of configure, once the initial config is done, is required to set site options - such as the CharSet.

There was a recent change to CharSet that seems to have caused this warning.

CC

I corrected all the references to {CharSet}

CC

ItemTemplate
Summary Unit test: Use of uninitialized value in pattern match (m//) at /var/www/twiki/lib/TWiki/Sandbox.pm line 192
ReportedBy TWiki:Main.KennethLavrsen
Codebase ~twiki4
SVN Range TWiki-4.1.2, Fri, 18 May 2007, build 13796
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:13956
TargetRelease minor
ReleasedIn

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-05-28 - TWikiUserMapping_CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback