From eeeb744e52d244dd04e022a89525358b6cc58a94 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 4 Jan 2010 18:59:24 +0000 Subject: [PATCH] -Support utf-8 on output git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4884 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm.2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm.2 b/xCAT-server/lib/xcat/plugins/ipmi.pm.2 index ad8984dc5..480baa173 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm.2 +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm.2 @@ -6516,6 +6516,8 @@ sub process_request { socketpair($pfd, $cfd,AF_UNIX,SOCK_STREAM,PF_UNSPEC) or die "socketpair: $!"; $cfd->autoflush(1); $pfd->autoflush(1); + binmode($cfd,':utf8'); + binmode($pfd,':utf8'); my $child = xCAT::Utils->xfork(); unless (defined $child) { die "Fork failed" }; if ($child == 0) {