$LANG variable

How do i set the $LANG variable without using export? I have set my locale.conf to LANG=en_US.UTF-8 but LANG is still always set to en_US which is not valid. I'd prefer not to use .bashrc or /etc/. Thanks in advance!

20 points · 8 comments · view on lemmy.world

8 Comments

kbal@kbin.melroy.org · 8 pts · 2y (4 replies)

localectl set-locale LANG=en_US.UTF-8

potentiallynotfelix@iusearchlinux.fyi · 1 pts · 2y (3 replies)

I've solved it by running g eselect locale set x with x being the locale. Thanks for your contribution.

potentiallynotfelix@iusearchlinux.fyi · 1 pts · 2y
[ removed ]
potentiallynotfelix@iusearchlinux.fyi · -1 pts · 2y (1 reply)

Nevermind somehow it was set back

potentiallynotfelix@iusearchlinux.fyi · 1 pts · 2y

It is OK 👍

backhdlp@iusearchlinux.fyi · 5 pts · 2y (1 reply)
potentiallynotfelix@iusearchlinux.fyi · 1 pts · 2y

This has solved it ultimately.

mvirts@lemmy.world · 4 pts · 2y (1 reply)

Why no export, bashrc, or /etc ?

potentiallynotfelix@iusearchlinux.fyi · 2 pts · 2y

If something else is setting it as en_US, then I don't want a conflict.