
On Tue, 2010-09-14 at 14:10 +0100, Daniel P. Berrange wrote:
This is bizarre - I don't see any characters in the $cmdfile string that are above ASCII-7 range, so should be identical whether its utf8 encoded or not !?!? Do you know why this makes it work correctly ?
The presence of ${mac1} in $cmdfile causes the problem. Eliminating $mac1 makes the problem go away. $mac1 is initialized like this: my $mac1 = get_first_macaddress($dom1); I guess, reading from the XML causes some sort of encoding problem. I googled for the error message and found similar problems which were fixed by using utf8::encode. -- Best regards, Gerhard Stenzel, ----------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294