From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29091 invoked from network); 30 Jan 2000 08:17:09 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Jan 2000 08:17:09 -0000 Received: (qmail 25003 invoked by alias); 30 Jan 2000 08:17:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9476 Received: (qmail 24971 invoked from network); 30 Jan 2000 08:17:02 -0000 To: zsh-workers@sunsite.auc.dk Subject: PATCH: use LC_ALL instead of LANG MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 30 Jan 2000 17:16:59 +0900 Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) This patch forces to use LC_ALL instead of LANG for getting a timestamp and a help message since LANG is overrided by LC_TIME, LC_MESSAGES and LC_ALL. Index: Completion/User/_cvs =================================================================== RCS file: /projects/zsh/zsh/Completion/User/_cvs,v retrieving revision 1.1.1.26 diff -u -r1.1.1.26 _cvs --- Completion/User/_cvs 2000/01/19 01:20:11 1.1.1.26 +++ Completion/User/_cvs 2000/01/30 07:54:48 @@ -406,9 +406,9 @@ if [[ -f "${cvspassfile::=${CVS_PASSFILE:-$HOME/.cvspass}}" ]]; then _cvs_loadstat if (( $+builtins[stat] )); then - id="$(LANG=C builtin stat -g +mtime -F '%Y/%m/%d-%T' "$cvspassfile")" + id="$(LC_ALL=C builtin stat -g +mtime -F '%Y/%m/%d-%T' "$cvspassfile")" else - id="$(LANG=C ls -l "$cvspassfile")" + id="$(LC_ALL=C ls -l "$cvspassfile")" fi if [[ "$id" != "$_cvs_pass_id" ]]; then _cvs_roots=($_cvs_roots ${${(f)"$(<$cvspassfile)"}%% *}) @@ -526,7 +526,7 @@ local ents pats ents=(${${${${(M)rawentries:#/*}#/}/\\/[^\\/]#\\///}%/[^/]#/[^/]#}) - pats=(${${${(f)"$(LANG=C builtin stat -gn +mtime -F '%a %b %e %T %Y' ${pref}*(D))"}##*/}/ //}) + pats=(${${${(f)"$(LC_ALL=C builtin stat -gn +mtime -F '%a %b %e %T %Y' ${pref}*(D))"}##*/}/ //}) eval 'ents=(${ents:#('${(j:|:)${(@)pats:q}}')})' entries=($entries ${ents%%/*}) } Index: Completion/User/_patch =================================================================== RCS file: /projects/zsh/zsh/Completion/User/_patch,v retrieving revision 1.1.1.9 diff -u -r1.1.1.9 _patch --- Completion/User/_patch 2000/01/30 02:40:42 1.1.1.9 +++ Completion/User/_patch 2000/01/30 07:54:49 @@ -1,7 +1,7 @@ #compdef patch if (( ! $+_patch_args )); then - local help="$(LANG=C patch --help 2>&1)" + local help="$(LC_ALL=C patch --help 2>&1)" local -A optionmap local arg local comp_p='compadd "$expl[@]" -S0 -r "1-9" - ""' -- Tanaka Akira