mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] tmux: select utf-8 locales
Date: Wed, 21 Feb 2018 13:07:12 +0100	[thread overview]
Message-ID: <20180221120712.17025-1-u.kleine-koenig@pengutronix.de> (raw)

When tmux starts with a non-utf-8 locale, it simply quits saying:

	tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968

So make sure that a suitable locale is selected.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 rules/tmux.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rules/tmux.in b/rules/tmux.in
index 83f8e4e6022f..7b5359c86194 100644
--- a/rules/tmux.in
+++ b/rules/tmux.in
@@ -5,5 +5,9 @@ config TMUX
 	prompt "tmux"
 	select LIBEVENT
 	select NCURSES
+	# tmux needs an utf-8 locale. Select "en_US (UTF-8)" unless any other
+	# utf-8 locale is already enabled
+	select LOCALES if RUNTIME
+	select LOCALES_EN_US_UTF8 if !LOCALES_DE_DE_UTF8
 	help
 	  Terminal multiplexer, something like GNU screen.
-- 
2.16.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2018-02-21 12:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180221120712.17025-1-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox