• 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.

Item3698: Undefined subroutine &utf8::is_utf8

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   n/a  

Edit Form Data

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

Detail

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

ItemTemplate
Summary Undefined subroutine &utf8::is_utf8
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-4.1.1, Sun, 25 Feb 2007, build 12972
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 12997 12998
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-03-01 - KennethLavrsen
 
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