You are not logged in.

#1 2021-04-21 02:53:55

JcdeA
Member
Registered: 2021-04-21
Posts: 7

[SOLVED] Ncmpcpp doesn't display Korean

I can't figure out how to get ncmpcpp to display Korean(and CJK in general) correctly. I am using Kitty as my terminal. mpc does display korean and Japanese just fine.

mpc:
https://s3.jcde.xyz/public/2021.04.21-1 … d92828088e

ncmpcpp:
https://s3.jcde.xyz/public/2021.04.21-1 … d760f8e5c8

https://s3.jcde.xyz/public/2021.04.21-1 … 82696fcaf8

I've tried setting the LANG variable, but that made no difference.

Last edited by JcdeA (2021-04-21 08:18:15)

Offline

#2 2021-04-21 06:26:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,527

Re: [SOLVED] Ncmpcpp doesn't display Korean

Do you start ncmpcpp from an interactive shell or like "kitty -e ncmpcpp" and does it make a difference?

Output of

localectl
locale -a
locale

Offline

#3 2021-04-21 06:55:41

JcdeA
Member
Registered: 2021-04-21
Posts: 7

Re: [SOLVED] Ncmpcpp doesn't display Korean

❯ localectl
   System Locale: LANG=C
       VC Keymap: n/a
      X11 Layout: n/a
❯ locale -a
C
POSIX
en_US.utf8
❯ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

Offline

#4 2021-04-21 06:56:26

JcdeA
Member
Registered: 2021-04-21
Posts: 7

Re: [SOLVED] Ncmpcpp doesn't display Korean

I did start ncmpcpp from an interactive shell.

kitty -e ncmpcpp doesn't make any difference.

Offline

#5 2021-04-21 06:58:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,527

Re: [SOLVED] Ncmpcpp doesn't display Korean

You're using a C locale, I'm not even sure how mpc works (except if it internally just changes the locale)
=> fix your locale setup, https://wiki.archlinux.org/index.php/Locale (en_US.utf8 is going to be fine - it hast to be utf-8, no necessarily korean)

Offline

#6 2021-04-21 07:08:23

JcdeA
Member
Registered: 2021-04-21
Posts: 7

Re: [SOLVED] Ncmpcpp doesn't display Korean

I've already tried setting the LANG variable to utf8(ko_KR.utf8 specifically) already, no difference.

Offline

#7 2021-04-21 07:09:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,527

Re: [SOLVED] Ncmpcpp doesn't display Korean

You do not have that locale available.
Would you please read the link I posted and that's actually part of the installation routine?

Offline

#8 2021-04-21 07:14:14

JcdeA
Member
Registered: 2021-04-21
Posts: 7

Re: [SOLVED] Ncmpcpp doesn't display Korean

Ahh, seems like I was missunderstanding the locale system all along. Setting en_US.utf8 solved the issue.

Offline

#9 2021-04-21 07:15:17

JcdeA
Member
Registered: 2021-04-21
Posts: 7

Re: [SOLVED] Ncmpcpp doesn't display Korean

Also, am I right that I should put

export LANG='en_US.utf8'

In /etc/environment?
Just checking in case I'm wrong.

Offline

#10 2021-04-21 07:23:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Ncmpcpp doesn't display Korean

1. Actually read the link seth provided: it explains exactly what you should do.

2. Edit your first post - read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2021-04-21 07:28:04

JcdeA
Member
Registered: 2021-04-21
Posts: 7

Re: [SOLVED] Ncmpcpp doesn't display Korean

Sorry, edited.

Offline

Board footer

Powered by FluxBB