On Tue, Aug 24, 2010 at 10:46:12AM +0100, Marc Herbert wrote: > Since the --terse option of nmcli is obviously meant to be parsed, > shouldn't it ignore locales? Or maybe avail two options: --terse versus > --cterse. > > LANG=ko_KR.utf8 nmcli --terse --fields state nm > 연결 끊겼음 IMHO it is standard practice to set LC_ALL=C when you call programs whose output you need to parse. The tool can stay simple. $ nmcli --terse --fields state nm neznámo $ LC_ALL=C nmcli --terse --fields state nm unknown -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
Attachment:
pgpW1g9MgYbTe.pgp
Description: PGP signature