From: cajus Date: Mon, 10 Mar 2008 16:43:43 +0000 (+0000) Subject: * Updated utf-8 handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=54c3f50d1005ca05082fa3efe2a37caa12cb50d5;p=gosa.git * Updated utf-8 handling * Removed error message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9622 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/client/events/corefunctions.pm b/gosa-si/client/events/corefunctions.pm index 892a561f0..fe44e6663 100644 --- a/gosa-si/client/events/corefunctions.pm +++ b/gosa-si/client/events/corefunctions.pm @@ -18,8 +18,6 @@ use strict; use warnings; use Data::Dumper; use Fcntl; -use utf8; -use open ':utf8'; use GOSA::GosaSupportDaemon; use File::Basename; diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index cbc3e5719..14f1ed75d 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -647,9 +647,10 @@ sub write_to_file { chomp($string); - open(FILE, ">> $file"); - print FILE $string."\n"; - close(FILE); + if (open(FILE, ">> $file")){ + print FILE $string."\n"; + close(FILE); + } } return;