Code

* Updated utf-8 handling
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Mar 2008 16:43:43 +0000 (16:43 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Mar 2008 16:43:43 +0000 (16:43 +0000)
* Removed error message

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9622 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/client/events/corefunctions.pm
gosa-si/gosa-si-client

index 892a561f04b335d7daeadf39426958ea658de474..fe44e6663be836223be32e08fb31e0e5b7d13d2f 100644 (file)
@@ -18,8 +18,6 @@ use strict;
 use warnings;
 use Data::Dumper;
 use Fcntl;
-use utf8;
-use open ':utf8';
 use GOSA::GosaSupportDaemon;
 use File::Basename;
 
index cbc3e571952a00d7474b602a6cc4650915c277bd..14f1ed75d68cd4d4e3a6ec5afe9d639ad6e04dfc 100755 (executable)
@@ -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;