moson-mo / pacseek

A terminal user interface for searching and installing Arch Linux packages
MIT License
328 stars 9 forks source link

Error starting pacseek: character set not supported #13

Closed nwg-piotr closed 2 years ago

nwg-piotr commented 2 years ago

I use pacseek on two other machines w/o any problem. Now I'm on vacation with only my old testing laptop, that runs Arch Linux installed with the archinstall script. The pacseek command returns as in the title:

$ pacseek
Error starting pacseek:

character set not supported

When started with LC_ALL=C pacseek it starts, but looks like this:

image

I use Polish locale pl_PL.UTF-8.

moson-mo commented 2 years ago

Hmm, that message comes from tcell I guess.

I can start it with LANG=pl_PL.UTF-8 pacseek just fine though. Which terminal emulator are you using?

Could you post the output of some commands:

locale -a
locale
cat /etc/locale.conf
echo $TERM

When you run it with LANG=C.UTF-8 pacseek it should be looking ok I guess?

nwg-piotr commented 2 years ago
$ locale -a
C
C.UTF-8
en_US.utf8
pl_PL.utf8utf8
POSIX

$ locale
LANG=pl_PL.UTF-8.UTF-8
LC_CTYPE="pl_PL.UTF-8.UTF-8"
LC_NUMERIC="pl_PL.UTF-8.UTF-8"
LC_TIME="pl_PL.UTF-8.UTF-8"
LC_COLLATE="pl_PL.UTF-8.UTF-8"
LC_MONETARY="pl_PL.UTF-8.UTF-8"
LC_MESSAGES="pl_PL.UTF-8.UTF-8"
LC_PAPER="pl_PL.UTF-8.UTF-8"
LC_NAME="pl_PL.UTF-8.UTF-8"
LC_ADDRESS="pl_PL.UTF-8.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8.UTF-8"
LC_ALL=

$ cat /etc/locale.conf
LANG=pl_PL.UTF-8.UTF-8

$ echo $TERM
foot

When you run it with LANG=C.UTF-8 pacseek it should be looking ok I guess?

Yes, it's all right.

moson-mo commented 2 years ago

$ cat /etc/locale.conf LANG=pl_PL.UTF-8.UTF-8

You have UTF-8 two times there...
Should be: LANG=pl_PL.UTF-8

Also maybe check /etc/locale.gen
It should be pl_PL.UTF-8 UTF-8 (space instead of .)

nwg-piotr commented 2 years ago

All the locale configuration has been done by the archinstall script, so maybe a bug on their side? I fixed manually, and pacseek starts. Thank you for your help.

moson-mo commented 2 years ago

a bug on their side?

Yeah, seems so: https://github.com/archlinux/archinstall/issues/1401