Ignore:
Timestamp:
11/09/11 12:47:33 (19 months ago)
Author:
PaulHarvey
Message:

Item11185: {Site}{CharSet} might be undef

... like during tests/builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/Logger/PlainFile.pm

    r13029 r13047  
    8686    # Item10764, SMELL UNICODE: actually, perhaps we should open the stream this 
    8787    # way for any encoding, not just utf8. Babar says: check what Catalyst does. 
    88     if ( $Foswiki::cfg{Site}{CharSet} =~ /^utf-?8$/ ) { 
     88    if (   $Foswiki::cfg{Site}{CharSet} 
     89        && $Foswiki::cfg{Site}{CharSet} =~ /^utf-?8$/ ) 
     90    { 
    8991        $mode .= ":encoding($Foswiki::cfg{Site}{CharSet})"; 
    9092    } 
Note: See TracChangeset for help on using the changeset viewer.