You are not logged in.
Pages: 1
Hi
I see that plasma is known to play about with Locale according to the wiki.
I am in the UK at GMT time playing on vanilla Arch.
I have monkeyed about with locale, so this is probably set all wrong,
/etc/locale =
LANG=en_GB.UTF-8
LANGUAGE=en_AU:en_GB:en
LC_ADDRESS=en.AU.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TELEPHONE=GB.UTF-8
LC_TIME=en_GB.UTF-8
Plasma set to =
[Formats]
LANG=en_GB.UTF-8
Am trying to run a program from the prompt, and it fails the programmer thinks that
the locale is not set correctly
please see the last line of
Prompt =
list index out of range
Traceback (most recent call last):
File "/usr/share/archlinux-tweak-tool/archlinux-tweak-tool.py", line 4546, in <module>
w = Main()
File "/usr/share/archlinux-tweak-tool/archlinux-tweak-tool.py", line 782, in __init__
utilities.get_term_rc("screenfetch | lolcat")
File "/usr/share/archlinux-tweak-tool/utilities.py", line 391, in get_term_rc
lines = myfile.readlines()
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 2053: invalid start byte
Any idea how to set this up properly?
--
Data
Offline
Please use code tags, https://bbs.archlinux.org/help.php#bbcode
en.AU.UTF-8 and GB.UTF-8 aren't valid locales.
Please post the output of
localectl; locale -a; localeOffline
steve@steve-Arch ~ % localectl; locale -a; locale
System Locale: LANG=en_GB.UTF-8
VC Keymap: uk
X11 Layout: gb
C
C.UTF-8
en_GB.utf8
en_US.utf8
POSIX
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
steve@steve-Arch ~ %EDI T:
Obviously, this is the code/s I entered into /etc/locale after installing, I did not read I assumed I could run the command later to generate proper codes.
Last edited by Data007 (2022-09-11 04:59:00)
Offline
this is the code/s I entered into /etc/locale after installing
I'm not sure what you're trying to say here, but you can add/change locales at any point.
You'll have to run "locale-gen" to apply changes to /etc/locale.gen, what will be necessary to add en_AU.UTF-8
https://wiki.archlinux.org/title/Locale
Your locale looks however ok, though no en_AU* shows up there.
This rather seems like some stray bytes in the file the script is trying to read; seems to be your shell config (bashrc, zshrc …)
Offline
this is the code/s I entered into /etc/locale after installing
I'm not sure what you're trying to say here, but you can add/change locales at any point.
I accepted during the installation the defaults, I read/reed the wiki/forum that you are supposed to change these.
en.AU.UTF-8 and GB.UTF-8 aren't valid locales.
Ok thanks, if they are not valid for the UK, London, or GMT then what are the valid codes for that time location?
You'll have to run "locale-gen" to apply changes to /etc/locale.gen, what will be necessary to add en_AU.UTF-8
https://wiki.archlinux.org/title/Locale
Thanks for the URL, I have looked it over before post1 this thread, however, I will look into it later to.
I have to go out soon to a meeting.
This "locale-gen" I can't seem to locate in the limited time I have, I have tried a few combinations but one would have to be in the correct folder first.
Your locale looks however ok, though no en_AU* shows up there.
This rather seems like some stray bytes in the file the script is trying to read; seems to be your shell config (bashrc, zshrc …)
This could be I have been trying to set up both *.rc s. With the goal off Setting up ZSH prompt(powerline)
Thanks for your response's
Last edited by Data007 (2022-09-11 07:30:47)
Offline
I accepted during the installation the defaults
Did you use the archinstall script or some other one?
Ok thanks, if they are not valid for the UK, London, or GMT then what are the valid codes for that time location?
The proper English locale is the one you're currently using, en_GB.UTF-8
If you've messed around in /etc/locale.conf afterwards, please post that file as it is.
GMT is a timezone,
timedatectl
echo $TZThis "locale-gen" I can't seem to locate in the limited time I have
% type locale-gen
pacman -Qo locale-gen(don't post, look at it)
one would have to be in the correct folder first
Not if you didn't fuck up your $PATH
Offline
Ok thanks, if they are not valid for the UK, London, or GMT then what are the valid codes for that time location?
The proper English locale is the one you're currently using, en_GB.UTF-8
If you've messed around in /etc/locale.conf afterwards, please post that file as it is.C.UTF-8 en_GB.UTF-8 POSIX LANG="en_GB.UTF-8" LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB" LC_TIME="GMT" LC_COLLATE="en_GB" LC_MONETARY="en_GB" LC_MESSAGES="en_GB" LC_PAPER="en_GB" LC_NAME="en_GB" LC_ADDRESS="en_GB" LC_TELEPHONE="en_GB" LC_MEASUREMENT="en_GB" LC_IDENTIFICATION="en_GB" LC_ALL=LANG=en_GBGMT is a timezone,
timedatectl steve@steve-Arch ~/Documents % timedatectl Local time: Sun 2022-09-11 12:01:09 GMT Universal time: Sun 2022-09-11 12:01:09 UTC RTC time: Sun 2022-09-11 12:01:09 Time zone: Etc/GMT (GMT, +0000) System clock synchronized: yesone would have to be in the correct folder first
Not if you didn't fuck up your $PATH
Yeah possibly.
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
#alias evb='sudo systemctl enable --now vboxservice.service'neofetch
PS1="\u@\h>\[$(tput sgr0)\]"
neofetch | lolcatZshrc 340 lines pastbin
https://pastebin.com/1gwYuACEI hope it's not against the rules to use pastebin but the sheer number of lines of code I think prevented it.
I would rather not reinstall Arch using the script again but if I have to I will.
Many thanks for your answers Seth
Last edited by Data007 (2022-09-11 12:02:49)
Offline
Is
C.UTF-8
en_GB.UTF-8
POSIX
LANG="en_GB.UTF-8"
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB"
LC_TIME="GMT"
LC_COLLATE="en_GB"
LC_MONETARY="en_GB"
LC_MESSAGES="en_GB"
LC_PAPER="en_GB"
LC_NAME="en_GB"
LC_ADDRESS="en_GB"
LC_TELEPHONE="en_GB"
LC_MEASUREMENT="en_GB"
LC_IDENTIFICATION="en_GB"
LC_ALL=LANG=en_GBthe contents of your locale.conf????
cat /etc/locale.conf | curl -F 'file=@-' 0x0.stIn doubt, just
LANG="en_GB.UTF-8"will do for the most part (there're reasons to adjust the CTYPE and COLLATE, but that's besides the point)
Most of that file is utter nonsense, "LC_ALL=LANG=en_GB" is a real problem.
Edit: whatever that zshrc file is (what is the exact location of the file you posted?), it's mostly commented.
Last edited by seth (2022-09-11 12:54:04)
Offline
Is
LC_ALL=LANG=en_GB the contents of your locale.conf????cat /etc/locale.conf | curl -F 'file=@-' 0x0.st
Yes that was the content of my locale
It is now just
LANG="en_GB.UTF-8"one line.
In doubt, just
LANG="en_GB.UTF-8"I did.
will do for the most part (there're reasons to adjust the CTYPE and COLLATE, but that's besides the point)
Most of that file is utter nonsense, "LC_ALL=LANG=en_GB" is a real problem.Edit: whatever that zshrc file is (what is the exact location of the file you posted?), it's mostly commented.
I have it open in the sublime text its in the root of "home/steve" the one and only user.
I think I am going to have to go again, I think I've borked it. Including this post.
--
Data
Offline
Pages: 1