git pull perl: warning: Setting locale failed.
Hi,
I'm new to Fedora (coming from Debian) and with a fresh install of Fedora 29, I get the following error:
⇒ git pull
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "en_US.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
Already up to date.
I searched the net like crazy and tried various solutions, but I still have the problem. I've tried stuff like these:
https://stephane.lesimple.fr/blog/fix...
https://www.poftut.com/perl-warning-s...
I also tried
localedef -i en_US -f UTF-8 en_US.UTF-8
[error] character map file 'UTF-8' not found: No such file or directory
[error] default character map file 'ANSI_X3.4-1968' not found: No such file or directory
But I am getting some errors.
I ended up installing all locales, I tried to add the exports in .bashrc and .zshrc (export LANG=en_US.UTF-8 and such), nothing solved it. So far I'm only getting it while doing a git pull... If someone could point me towards a solution please!
Damn I found the solution, I had to add export LC_ALL=C (or just LC_ALL=C for zsh)