-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to set locale category #41139
Comments
|
It's true. Currently my
After change Region (from Russia to United States) the values of variables are the following:
And utilities are started without warnings.
But why did this happen? I didn't have such problem until the latest update. And locale "C" is presented in list.
|
I'm not sure if this is in brew or in OSX e.g.:
It wouldn't surprise me if these messages where always there, but something changed that made them visible. I think switching region is not a proper solution -> Either OSX needs to generate the proper locale(s) when we select an otherwise valid setup. Or we should be able to silence the warning one way or the other. |
I guess that's dependent on the recent gettext update. https://savannah.gnu.org/forum/forum.php?forum_id=9430. You should probably use localedef to generate the locale you're using then. Either way it's not something Homebrew could fix, please file issues with Apple and/or gettext. |
Currently I've just added export
|
FWIW, I've started getting the same warnings complaining about a missing |
Yeah, that one probably doesn't exist in the output of
It's a fix and it affects everyone who used a non-existant locale. |
Obviously, but nowhere in
Thanks, I tried that command but it didn't fix anything. ;)
See, I don't believe I am using a "non-existant locale". I don't have any env vars mentioning the locale combination Anyways, I quieted these new warnings for now by exporting |
From release notes for gettext 0.20:
Looks like gettext's team has fixed the oldest bug (gettext ignored locales which didn't exist in macOS). In fact, problem has been fixed, but this fix created headache for us.
|
Actually, gettext's team has made improvement in the latest commit (see link).
if (warn)
{
/* Warn only if the environment variable
SETLOCALE_VERBOSE is set. Otherwise these warnings
are just annoyances, since normal users won't invoke
'localedef'. */
const char *verbose = getenv ("SETLOCALE_VERBOSE");
if (verbose != NULL && verbose[0] != '\0')
fprintf (stderr,
"Warning: Failed to set locale category %s to %s.\n",
category_to_name (cat), name);
} So, I guess, the problem with warnings will be fixed in the next version of gettext, because |
Same issue :/
|
I' just put
to my .zshrc |
Including patch for macOS warning verbosity from: https://git.merproject.org/mirror/gettext/commit/ec0e6b307456ceab352669ae6bccca9702108753.diff Read more at: Homebrew/homebrew-core#41139
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew install
(orupgrade
,reinstall
) a single, Homebrew/homebrew-core formula (not cask) on macOS? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a Linux problem please file this issue at https://github.com/Homebrew/linuxbrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?brew doctor: Your system is ready to brew.
brew config:
HOMEBREW_VERSION: 2.1.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: fddf5b1
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 0bccc67
Core tap last commit: 13 minutes ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1001
Git: 2.22.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 11.0.3, 1.8.0_211, 1.7.0_80
macOS: 10.14.5-x86_64
CLT: 10.2.1.0.1.1554506761
Xcode: 10.2.1
CLT headers: 10.2.1.0.1.1554506761
XQuartz: 2.7.11 => /opt/X11
To help us debug your issue please explain:
I run some utilities installed from homebrew (like vim, wget, mc).
Utilities are ran, but I get the following warnings before:
No warnings should appear.
brew install
commands)$ brew install vim
$ vim
The text was updated successfully, but these errors were encountered: