I get an internal server error after an svn up on MAIN. Apache error_log has this:
[Wed Feb 28 19:17:11 2007] [error] [client 66.92.19.99] Undefined subroutine &utf8::is_utf8 called at
/path/to/svn/MAIN/lib/TWiki/Store/RcsFile.pm line 90., referer: http://example.com/cgi-bin/configure/TWiki/WebHome
[Wed Feb 28 19:17:11 2007] [error] [client 66.92.19.99] Premature end of script headers: view, referer:
http://example.com/cgi-bin/configure/TWiki/WebHome
My system is on Perl 5.8.0. If I change the version number from
5.008
to
5.008001
in
lib/TWiki/Store/RcsFile.pm
it works again:
# remove utf8 encodings from filenames
if( $] >= 5.008001 ) {
utf8::downgrade($this->{attachment}) if $attachment && utf8::is_utf8($this->{attachment});
utf8::downgrade($this->{file}) if utf8::is_utf8($this->{file});
utf8::downgrade($this->{rcsFile}) if utf8::is_utf8($this->{rcsFile});
}
Possibly better to check for the existence of the module instead of the Perl version number?
--
TWiki:Main/PeterThoeny
- 01 Mar 2007
I think I will remove this feature from Patch04x01. Steffen had concerns about it also. I think we need to understand the whole utf8 thing better and implement a safer solution to the problem. It does not help creating a new problem to fix another problem.
--
TWiki:Main.KennethLavrsen
- 01 Mar 2007
Reverted out of Patch04x01 and MAIN.
Closing this report and reopening the original report.
--
TWiki:Main.KennethLavrsen
- 01 Mar 2007