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