2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +00:00

fhem.pl: Fixing strftime widechar conversion (Forum #131207)

git-svn-id: https://svn.fhem.de/fhem/trunk@27268 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-02-24 14:53:30 +00:00
parent 827c4c45b4
commit 4fad64faf1

View File

@ -3697,7 +3697,9 @@ ResolveDateWildcards($@)
return $f if($f !~ m/%/); # Be fast if there is no wildcard
my $logdir = Logdir();
$f =~ s/%L/$logdir/g;
return strftime($f,@t);
my $ret = strftime($f,@t); # converts from UTF-8 to WideChar
$ret = Encode::encode("UTF-8", $ret) if(!$unicodeEncoding);
return $ret;
}
sub