Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-10788

Funtoo does not have locale configuration during non-interactive shells

    • Icon: Bug Bug
    • Resolution: Expected Behavior
    • Icon: Normal Normal
    • None
    • None
    • None
    • ssh <myhost> -t tmux attach

      prof from the forums https://forums.funtoo.org/topic/5084-non-interactive-ssh-does-not-set-lang/

       
      I'm comparing Funtoo behavior to other linux (specifically Oracle Enterprise Linux (OEL), which is a RedHat fork).

      Funtoo does not have locale configuration (specifically, I expect LANG=en_US.utf8) during non-interactive shells.

      In my real world scenario, going "ssh <myhost>" then followed by "tmux attach" command interactively works fine

      whereas "ssh <myhost> -t tmux attach" messes up all Unicode characters because LANG is not set and locale defaults to POSIX while using non-interactive shell.

      Other linux (OEL, for example) has locale configuration called from .bashrc, while Funtoo .bashrc skeleton is literally empty.

      I have no problem working around by adding that setting in .bashrc by hands, but should not that be a reasonable default? If so, I probably should file a bug. What do you think? What are the reasons of not setting locale in .bashrc for all shells including non-interactive? Whose strategy is right or wrong, Funtoo or OEL?

      Thank you for your input

            Unassigned Unassigned
            grouche grouche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: