Change LANG temporarily

For example, when posting something like this, I think most people find it annoying to see something other than English.
What should I do if I want to temporarily start up in English?

Is there a way to do it with minimal effort?
It takes less than 1 minute.

I feel little sad.

Hi @ehhen,

All environment variables can be set for that running app as prefix to the command-line. So, the following is all temporary:

Just prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Hope this helps!

1 Like

LC_ALL=C manjaro-settings-manager
I replaced the screenshot.

thanks.

not LANG=C. :grinning:

Nope, this one was added for debug purposes, if I recall correct. Exact for use like this…:point_up:

@Mirdarthos
LC_ALL=C

I just checked $HISTFILE.

during the past 10 years
It looks like I’m using a little over 400.

In my case, I use it with a pipe.

LC_ALL=C sort

The result of sort is different.
Sort speed is faster.

https://unix.stackexchange.com/questions/564303/sort-lc-all-c-vs-lc-all-c-utf8

There’s no pipe in that command? Or am I missing something? That’s also a distinct possibility…

parallel cd {} '&&' bash -c 'find . -type f -exec md5sum {} + | LC_ALL=C sort | md5sum | perl -lpE "s#^.*/##" ' ::: */