Skip to content

Commit

Permalink
Item12027: Apply Plainfile fix to Compatibility
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@17218 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Jan 7, 2014
1 parent e01e4c4 commit 3e50a35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/lib/Foswiki/Logger/Compatibility.pm
Expand Up @@ -115,10 +115,12 @@ sub log {
my $file;
my $mode = '>>';

# Item10764, SMELL UNICODE: actually, perhaps we should open the stream this
# way for any encoding, not just utf8. Babar says: check what Catalyst does.
# Item10764, SMELL UNICODE: actually, perhaps we should open the stream this
# way for any encoding, not just utf8. Babar says: check what Catalyst does.
# Item12027: this only makes sense for Unicode strings, not UTF-8 byte strings
if ( $Foswiki::cfg{Site}{CharSet}
&& $Foswiki::cfg{Site}{CharSet} =~ /^utf-?8$/ )
&& $Foswiki::cfg{Site}{CharSet} =~ /^utf-?8$/
&& utf8::is_utf8($message) )
{
$mode .= ":encoding($Foswiki::cfg{Site}{CharSet})";
}
Expand Down

0 comments on commit 3e50a35

Please sign in to comment.