From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hunt Date: Fri, 30 Sep 2011 08:30:21 +0000 Subject: Is ASCII the expected udev character encoding? Message-Id: <4E857E1D.8000406@ubuntu.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi All, Working on the Ubuntu bug below where a battery unit is exposing non-printable characters via udev made me wonder: is the expected character encoding for all udev messages ASCII? Or is the expectation that the kernel simply acts as a pass-through (such that it is the responsibility of userspace to determine the exact meaning of such messages)? If ASCII is expected, should this be made manifest somewhere? https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/829980 I'm happy to provide a kernel patch for the bug above, but need to understand whether the kernel should be sanitizing udev message content, or leaving that up to userspace. Kind regards, James.