From 9103d554e061e4c26bf60446191e7584e27f73e4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 19 Oct 2015 16:35:17 -0400 Subject: [PATCH] Handle unicode DCMI data incoming If unicode string data is submitted, pass it along as utf-8 encoded bytes. Change-Id: I00adc7aff4dcf06061a9fad69ed33cd784e7fe1b --- pyghmi/ipmi/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 3ca7ab83..f43e0e1a 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -1012,7 +1012,7 @@ class Command(object): offset = 0 for chunk in chunks: cmddata = bytearray((0xdc, offset, len(chunk))) - cmddata += chunk + cmddata += bytearray(chunk, 'utf-8') self.xraw_command(netfn=0x2c, command=command, data=cmddata) def set_channel_access(self, channel=None,