Re: e2 config name

  • From: <tpgww@xxxxxxxxxxx>
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Mon, 17 Apr 2017 09:13:46 +1000

On Mon, 10 Apr 2017 17:27:44 +0300
serge <omoikane@xxxxx> wrote:

But if i start term and login as root, do something, login as user and
start e2 - e2 starts with default config because LANG changed to UTF-8.
I think this IS a problem for emelfm2 )

Changing user MIGHT change the current suite of environment variables, e.g.

root
LANG=en_US.utf8

as root, su somebody
LANG=en_US.utf8

as root, su --login somebody
LANG=en_US.UTF-8

Character-encodings may have valid aliases e.g. for UTF-8
unicode-1-1-utf-8
utf-8
utf8

I haven't been able to come up with a generic, robust and reasonably 
practicable runtime discriminator between unintended changes (such as after su) 
and intended (such as en_US.UTF-8 to fr_FR.utf-8).

I've coded a new command-line option -g,--lang=LANG which, if used, prevails 
over the environment-variable LANG as the suffix of the configuration file to 
be used. However that doesn't help with unintended changes.

Regards
Tom


-- 
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: