Hello,
I think the attached patch is necessary to handle the case where msgtowstr() fails to convert the character data. Could you check this?
RegardsTakayuki Tsunakawa