Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is wget printing all messages in Russian when run from the terminal in PyCharm?

For some reason, wget has started printing all of its messages in Russian, but only when run from within PyCharm's terminal. Why is this happening and how can I change it back to English?

screenshot

I am on OSX 10.13, and am using wget 1.19.4_1 installed using Homebrew. I have used wget on this computer before, and the text was in English. I cannot understand Russian, so nothing on this computer has ever been set to use Russian.

When I run ...$ locale, this is the result:

LANG=
LC_COLLATE="C"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

Here's what I've found so far

  • This only happens for terminals in JetBrains IDEs -- I have tried both PyCharm and JGrasp, and they are both affected. When run in the OSX Terminal app, wget outputs English text. It would still be nice to know why this is happening and how to fix it.
  • This problem seems to affect only wget
  • Reinstalling wget using brew does not seem to have any effect.
  • There is no en_US locale in /usr/local/Cellar/wget/1.19.4_1/share/locale/, but I do not know if this could be the cause of my problem.
  • Copying .../en_GB/ (where ... is wget's locale folder) into a new folder called .../en_US/ does not get rid of the Russian text. Nor does replacing .../ru/ with .../en_GB/. I'm not sure exactly how a locale is defined, so this may or may not mean anything.
like image 578
lowtex Avatar asked Dec 20 '25 07:12

lowtex


1 Answers

This just happened to me, except in french.

My fix: force in the lang values in the terminal

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

This has wget happy; I've added them to ~/.profile now to see if it keeps them away forever.

like image 188
stevel Avatar answered Dec 21 '25 22:12

stevel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!