From 54c3f50d1005ca05082fa3efe2a37caa12cb50d5 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 10 Mar 2008 16:43:43 +0000 Subject: [PATCH] * Updated utf-8 handling * 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 | 2 -- gosa-si/gosa-si-client | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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; -- 2.30.2