bash formula warns about LC_CTYPE: cannot change locale (): Bad file descriptor
#6309
Replies: 4 comments 4 replies
-
Can't reproduce, I'm afraid. What's the output of |
Beta Was this translation helpful? Give feedback.
-
@carlocab -bash: warning: setlocale: LC_COLLATE: cannot change locale (): No such file or directory
locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
-bash: warning: setlocale: LC_COLLATE: cannot change locale (): No such file or directory While the workaround is to set # ~/.profile
export LC_COLLATE=C System Settings, General, Language & Region, Preferred Languages is set to
|
Beta Was this translation helpful? Give feedback.
-
Can reproduce:
And with the stock system Bash:
|
Beta Was this translation helpful? Give feedback.
-
FWIW, adding the following to my eval $(locale) This effectively sets LC_CTYPE based on whatever the current value of LANG is (and to "C" if it's empty). No idea if this is a good approach or not. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
$ /opt/homebrew/bin/bash --login
bash: warning: setlocale: LC_CTYPE: cannot change locale (): Bad file descriptor
$ [/opt/homebrew/bin/bash shell]
Beta Was this translation helpful? Give feedback.
All reactions