zsh-users
 help / color / mirror / code / Atom feed
From: Jeremy Cantrell <jmcantrell@gmail.com>
To: zsh-users@zsh.org
Subject: vcs_info causing LC_MESSAGES to be unset
Date: Mon, 7 Nov 2022 15:48:20 -0600	[thread overview]
Message-ID: <CAHM1PU0SGkRc-vLCDqWXhyusyHQ+BmME3gtdLs-gVfAJ8e173g@mail.gmail.com> (raw)

In my zshrc I have the following (among other things):

```zsh
setopt prompt_subst
autoload -U vcs_info
precmd_functions+=vcs_info
```

Before this is executed, `locale` reports my `LC_MESSAGES` to be the
same value as my `LANG`, "en_us.UTF-8". After the first time the
function is called, `LC_MESSAGES` is set to an empty string. I notice
in the function, `LC_MESSAGES` is declared as local for autoexport and
then set to "C".

Why would this be causing it to be an empty string in my environment?
It seems wrong that it should be changing those values for anything
outside of whatever is using it within `vcs_info`.


                 reply	other threads:[~2022-11-07 21:49 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=CAHM1PU0SGkRc-vLCDqWXhyusyHQ+BmME3gtdLs-gVfAJ8e173g@mail.gmail.com \
    --to=jmcantrell@gmail.com \
    --cc=zsh-users@zsh.org \
    /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).