From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16805 invoked by alias); 26 Dec 2017 04:47:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42172 Received: (qmail 14733 invoked by uid 1010); 26 Dec 2017 04:47:07 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-expgw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.98.2):SA:0(-2.6/5.0):. Processed in 2.326238 secs); 26 Dec 2017 04:47:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Biglobe-Sender: From: Jun T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] avoid localized output from external commands in a few completion Date: Tue, 26 Dec 2017 13:47:01 +0900 References: <42959CB1-DB49-474F-86DA-DD4C08D1CE43@kba.biglobe.ne.jp> <1514251193.2800192.1215805184.324D9E4C@webmail.messagingengine.com> To: zsh-workers@zsh.org In-Reply-To: <1514251193.2800192.1215805184.324D9E4C@webmail.messagingengine.com> Message-Id: <19CB3093-E02F-48F1-AE9D-8A446FED7540@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3273) X-Biglobe-Spnum: 60112 > 2017/12/26 10:19=E3=80=81Daniel Shahaf = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB: >=20 > Bart Schaefer wrote on Mon, 25 Dec 2017 17:04 -0800: >> On Mon, Dec 25, 2017 at 3:40 PM, Jun T. = wrote: >>> In some recent Linux distributions, output from commands >>> like 'nm --help' is localized and can't be analyzed correctly >>> by completion scripts. We need to reset LC_MESSAGES. >>=20 >=20 > That won't help if LC_ALL is set. Shouldn't we just set LC_ALL=3DC, = or > use _comp_locale? Oops, sorry. We need to reset LC_ALL. I didn't know _comp_locale; is it documented somewhere? >> Perhaps this is something that would better be done by = _main_complete? Might be, but I'm not sure. zsh% tar -- gives a list of long options with localized description, because the = output of 'tar --help' is localized and _tar uses '_arguments --' for = completing long options. Although the localized description may not be "perfect", = some user would still want to see it. How about adding an option (say -l) to _call_program so that = _comp_locale is called before the command?=