On 08/13/2012 01:39 PM, Karel Zak wrote: > On Wed, Aug 08, 2012 at 12:36:05AM +0100, Pádraig Brady wrote: >> ck\slash is not \x<xdigit> sequence, so escape is unnecessary >>> >>> Note that \\server\path is pretty common for cifs and use \x5c >>> for all '\' will make the findmnt output unreadable in many cases. >>> IMHO is better to be "smart" and use escape sequences only when it's >>> really necessary. >> >> Better for humans, but awkward for scripts to parse. >> What I was thinking was perhaps --raw or -P would >> do unconditional escaping of '\' so unescaping can be >> done with just `printf %b`? > > Good point. Fixed, all '\' will be replaced with \x5c. Excellent. I've tested using the previous test case, and output is as expected (including the invalid UTF8 case). cheers, Pádraig. -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html