zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: use LC_ALL instead of LANG
Date: 30 Jan 2000 17:16:59 +0900	[thread overview]
Message-ID: <rsqd7qkrn2c.fsf@crane.jaist.ac.jp> (raw)

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


                 reply	other threads:[~2000-01-30  8:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rsqd7qkrn2c.fsf@crane.jaist.ac.jp \
    --to=akr@jaist.ac.jp \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).