Re: Print strings with double quotes safely in ifconfig(8)

2014-08-11 Thread Stuart Henderson
On 2014/08/11 03:03, Vadim Zhukov wrote: 2014-08-11 2:06 GMT+04:00 patrick keshishian pkesh...@gmail.com: On 8/10/14, Vadim Zhukov persg...@gmail.com wrote: This changes the way ifconfig(8) to print lines like 'crazy nwid', i.e., containing double quotes inside the data being output. At

Re: Print strings with double quotes safely in ifconfig(8)

2014-08-11 Thread Stefan Sperling
On Mon, Aug 11, 2014 at 12:12:08PM +0100, Stuart Henderson wrote: Another question is what to do with (increasingly common) unicode SSIDs, we could probably do better than the existing if (buf[i] 0x80 || !isprint(buf[i])) if we know that we're in a utf8 locale. I'm not opposed to making

Re: Print strings with double quotes safely in ifconfig(8)

2014-08-11 Thread Vadim Zhukov
2014-08-11 15:12 GMT+04:00 Stuart Henderson st...@openbsd.org: On 2014/08/11 03:03, Vadim Zhukov wrote: 2014-08-11 2:06 GMT+04:00 patrick keshishian pkesh...@gmail.com: On 8/10/14, Vadim Zhukov persg...@gmail.com wrote: This changes the way ifconfig(8) to print lines like 'crazy nwid',

Re: Print strings with double quotes safely in ifconfig(8)

2014-08-10 Thread Alexander Hall
On August 10, 2014 11:17:59 PM CEST, Vadim Zhukov persg...@gmail.com wrote: This changes the way ifconfig(8) to print lines like 'crazy nwid', i.e., containing double quotes inside the data being output. At the present, such lines will be printed in the following way: crazy nwid And this makes

Re: Print strings with double quotes safely in ifconfig(8)

2014-08-10 Thread patrick keshishian
On 8/10/14, Vadim Zhukov persg...@gmail.com wrote: This changes the way ifconfig(8) to print lines like 'crazy nwid', i.e., containing double quotes inside the data being output. At the present, such lines will be printed in the following way: crazy nwid And this makes everything that tries

Re: Print strings with double quotes safely in ifconfig(8)

2014-08-10 Thread Vadim Zhukov
2014-08-11 2:06 GMT+04:00 patrick keshishian pkesh...@gmail.com: On 8/10/14, Vadim Zhukov persg...@gmail.com wrote: This changes the way ifconfig(8) to print lines like 'crazy nwid', i.e., containing double quotes inside the data being output. At the present, such lines will be printed in the