You are not logged in.

#1 2016-06-22 12:11:44

Knyght
Member
Registered: 2016-06-22
Posts: 7

[SOLVED] Locale broken

After some upgrade over the last few months, my locale is stuck to POSIX with no LANG.

locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL
locale -a
C
POSIX
en_GB.utf8
en_US.utf8
cat /etc/locale.conf 
LANG=en_GB.UTF-8

I've read around some similar threads (including one from yesterday) but didn't find anything to fix my problem.

Last edited by Knyght (2016-06-28 18:14:09)

Offline

#2 2016-06-22 13:38:45

madpierre
Member
Registered: 2016-05-27
Posts: 188

Re: [SOLVED] Locale broken

What measures have you taken to remedy the problem?

Offline

#3 2016-06-22 14:09:29

Knyght
Member
Registered: 2016-06-22
Posts: 7

Re: [SOLVED] Locale broken

I've tried reinstalling glibc and re-running locale-gen, I can manually export LANG and it kinda works to some extent but some of the text (mostly completion) gets screwed up in fish, which doesn't happen otherwise and didn't happen before it broke.

I'm not sure what else to try.

Offline

#4 2016-06-22 21:57:47

smudge
Member
Registered: 2011-03-20
Posts: 158

Re: [SOLVED] Locale broken

Have a look at: https://bbs.archlinux.org/viewtopic.php?id=213980

What's the output of:

cat /etc/environment

?

Offline

#5 2016-06-27 11:51:48

Knyght
Member
Registered: 2016-06-22
Posts: 7

Re: [SOLVED] Locale broken

I read through that thread, but didn't see anything obvious.

/etc/environment

is blank, other than some comments.

Offline

#6 2016-06-27 12:19:01

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,860
Website

Re: [SOLVED] Locale broken

Instead of telling us there was nothing obvious, please post the outputs requested in the linked thread. Your -Qkk output and dotfiles for your shell in particular, but the more information you provide us, the more chance we will be able to help you..

https://wiki.archlinux.org/index.php/Co … ow_to_post


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2016-06-27 12:38:28

Knyght
Member
Registered: 2016-06-22
Posts: 7

Re: [SOLVED] Locale broken

WorMzy, I already pasted the output of everything relevant from that thread that I saw - most of it is zsh related, and as mentioned before, I'm not using zsh.

Last edited by Knyght (2016-06-27 12:38:44)

Offline

#8 2016-06-27 13:14:02

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,860
Website

Re: [SOLVED] Locale broken

Knyght wrote:

I already pasted the output of everything relevant from that thread

No, you really haven't.

WorMzy wrote:

Your -Qkk output and dotfiles for your shell

If you are using bash, 'pacman -Qkk filesystem bash', if you are using dash, 'pacman -Qkk filesystem dash', etc.. make an effort, please.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2016-06-27 13:20:45

Knyght
Member
Registered: 2016-06-22
Posts: 7

Re: [SOLVED] Locale broken

Thanks for insinuating I'm not making an effort - I'm sure it will do much for lessening the stereotype of linux forums being unfriendly and toxic.

pacman -Qkk filesystem fish
backup file: filesystem: /etc/fstab (Modification time mismatch)
backup file: filesystem: /etc/fstab (Size mismatch)
backup file: filesystem: /etc/group (Modification time mismatch)
backup file: filesystem: /etc/group (Size mismatch)
backup file: filesystem: /etc/gshadow (Modification time mismatch)
backup file: filesystem: /etc/gshadow (Size mismatch)
warning: filesystem: /etc/mtab (Symlink path mismatch)
warning: filesystem: /etc/mtab (Modification time mismatch)
backup file: filesystem: /etc/passwd (Modification time mismatch)
backup file: filesystem: /etc/passwd (Size mismatch)
backup file: filesystem: /etc/resolv.conf (Modification time mismatch)
backup file: filesystem: /etc/resolv.conf (Size mismatch)
backup file: filesystem: /etc/shadow (Modification time mismatch)
backup file: filesystem: /etc/shadow (Size mismatch)
backup file: filesystem: /etc/shells (Modification time mismatch)
backup file: filesystem: /etc/shells (Size mismatch)
filesystem: 90 total files, 1 altered file
fish: 807 total files, 0 altered files
cat ~/.config/fish/config.fish 
# Aliases
alias pacman "sudo pacman"
alias grep "grep --color=auto"
alias mkdir "mkdir -p -v"
alias mv "mv -iv"
alias rm "rm -Iv --one-file-system"
alias workon "vf activate"
alias deactivate "vf deactivate"
alias dotty "~/.dotfiles/dotty/dotty.py"
alias st "st -f \"Meslo LG M:size=14\""

# Virtualenv
eval (python -m virtualfish auto_activation)

# Other files
. $HOME/.config/fish/solarized.fish
. $HOME/.config/fish/lesscolours.fish

# SSH Agent
function ssh_agent --description 'launch the ssh-agent and add the id_rsa identity'
    if begin
            set -q SSH_AGENT_PID
            and kill -0 $SSH_AGENT_PID
            and grep -q '^ssh-agent' /proc/$SSH_AGENT_PID/cmdline
    end
        echo "ssh-agent running on pid $SSH_AGENT_PID"
    else
        eval (command ssh-agent -c | sed 's/^setenv/set -Ux/')
    end
    set -l identity $HOME/.ssh/id_rsa
    set -l fingerprint (ssh-keygen -lf $identity | awk '{print $2}')
    ssh-add -l | grep -q $fingerprint
        or ssh-add $identity
end
cat ~/.config/fish/lesscolours.fish 
set -xU LESS_TERMCAP_mb (printf "\e[01;31m")      # begin blinking
set -xU LESS_TERMCAP_md (printf "\e[01;31m")      # begin bold
set -xU LESS_TERMCAP_me (printf "\e[0m")          # end mode
set -xU LESS_TERMCAP_se (printf "\e[0m")          # end standout-mode
set -xU LESS_TERMCAP_so (printf "\e[01;44;33m")   # begin standout-mode - info box
set -xU LESS_TERMCAP_ue (printf "\e[0m")          # end underline
set -xU LESS_TERMCAP_us (printf "\e[01;32m")      # begin underline
cat ~/.config/fish/solarized.fish 
# Use these settings if you've applied a Solarized theme to your terminal (for
# example, if "ls -G" produces Solarized output). i.e. if "blue" is #268bd2, not
# whatever the default is. (See "../etc/Solarized Dark.terminal" for OS X.)

set -l base03  "--bold black"
set -l base02  "black"
set -l base01  "--bold green"
set -l base00  "--bold yellow"
set -l base0   "--bold blue"
set -l base1   "--bold cyan"
set -l base2   "white"
set -l base3   "--bold white"
set -l yellow  "yellow"
set -l orange  "--bold red"
set -l red     "red"
set -l magenta "magenta"
set -l violet  "--bold magenta"
set -l blue    "blue"
set -l cyan    "cyan"
set -l green   "green"

# Use these settings if your terminal supports term256 and your terminal hasn't
# been configured with a Solarized theme.i.e. if "blue" is the default blue, not
# Solarized blue.
#
# set -l base03  002b36
# set -l base02  073642
# set -l base01  586e75
# set -l base00  657b83
# set -l base0   839496
# set -l base1   93a1a1
# set -l base2   eee8d5
# set -l base3   fdf6e3
# set -l yellow  b58900
# set -l orange  cb4b16
# set -l red     dc322f
# set -l magenta d33682
# set -l violet  6c71c4
# set -l blue    268bd2
# set -l cyan    2aa198
# set -l green   859900

# Used by fish's completion; see
# http://fishshell.com/docs/2.0/index.html#variables-color

set -g fish_color_normal      $base0
set -g fish_color_command     $base0
set -g fish_color_quote       $cyan
set -g fish_color_redirection $base0
set -g fish_color_end         $base0
set -g fish_color_error       $red
set -g fish_color_param       $blue
set -g fish_color_comment     $base01
set -g fish_color_match       $cyan
set -g fish_color_search_match "--background=$base02"
set -g fish_color_operator    $orange
set -g fish_color_escape      $cyan

# Used by fish_prompt

set -g fish_color_hostname    $cyan
set -g fish_color_cwd         $yellow
set -g fish_color_git         $green

Offline

#10 2016-06-28 10:20:47

ymf331
Banned
Registered: 2015-04-18
Posts: 9

Re: [SOLVED] Locale broken

did you try following the steps in the beginner's guide that describe how to use locale-gen?


i can't put this zsh config on the forum: http://dotshare.it/dots/1144/

Offline

#11 2016-06-28 16:45:59

Knyght
Member
Registered: 2016-06-22
Posts: 7

Re: [SOLVED] Locale broken

Yeah, I've ran locale-gen a few times, made sure my locale.conf is good (pasted that earlier).

Offline

#12 2016-06-28 17:41:18

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: [SOLVED] Locale broken

Is this maybe relevant?

Offline

#13 2016-06-28 18:13:51

Knyght
Member
Registered: 2016-06-22
Posts: 7

Re: [SOLVED] Locale broken

Thanks, that did seem to fix the problem - though I am still curious why it used to work just fine.

Offline

#14 2016-06-28 19:21:03

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: [SOLVED] Locale broken

Google gave me this: https://github.com/fish-shell/fish-shel … -222846361

Up until a couple of months ago (see commit b4b52b8) fish would set -x LANG en_US.UTF-8 if LANG wasn't defined. Which masked broken distros for a lot of people.

Offline

Board footer

Powered by FluxBB