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.


not LANG=C. :grinning:

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


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.

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

… Why are you phrasing it like that? :man_shrugging:
There is no pipe in that command.

Because I know I don’t know everything and am always open to learn new things if there is something to learn. And I might have misunderstood the post, or the sentence. As I said, I know I might miss something and that I’m not perfect no matter what my Mom told me when I was younger and could still be cute.

Not too mention that it’s funny sometimes.

1 Like

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

I get it.
But this overfriendlyness and what looks to me as
trying to cover all the possible bases
and even proactively setting yourself up to be in the wrong

is just irritating me to no end.

Sorry - you are one of the nicest persons I have met online.
I did not intend to offend you.

This really didn’t even belong here - I should have just bit my tongue.
but, alas, I didn’t

1 Like