From: sebek64@post.cz (Marcel Sebek)
To: linux-kernel@vger.kernel.org, sam@ravnborg.org
Subject: Re: menuconfig and UTF-8
Date: Sun, 18 Apr 2004 13:35:18 +0200 [thread overview]
Message-ID: <20040418113518.GA2588@penguin.localdomain> (raw)
In-Reply-To: <20040406192219.GA5938@penguin.localdomain>
Here is another patch. It saves LC_CTYPE value to a temporary variable
and restores it for *config targets. It fixes the problem with
menuconfig and UTF-8 console.
diff -urN linux-2.6/Makefile linux-2.6-new/Makefile
--- linux-2.6/Makefile 2004-04-18 13:20:47.000000000 +0200
+++ linux-2.6-new/Makefile 2004-04-18 13:26:31.000000000 +0200
@@ -131,14 +131,20 @@
endif
# Make sure we're not wasting cpu-cycles doing locale handling, yet do make
-# sure error messages appear in the user-desired language
+# sure error messages appear in the user-desired language and LC_CTYPE is
+# preserved for *config targets
ifdef LC_ALL
LANG := $(LC_ALL)
LC_ALL :=
endif
LC_COLLATE := C
+ifdef LC_CTYPE
+SAVED_LC_CTYPE := $(LC_CTYPE)
+else
+SAVED_LC_CTYPE := C
+endif
LC_CTYPE := C
-export LANG LC_ALL LC_COLLATE LC_CTYPE
+export LANG LC_ALL LC_COLLATE LC_CTYPE SAVED_LC_CTYPE
srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))
TOPDIR := $(srctree)
diff -urN linux-2.6/scripts/kconfig/Makefile linux-2.6-new/scripts/kconfig/Makefile
--- linux-2.6/scripts/kconfig/Makefile 2004-04-18 13:27:37.000000000 +0200
+++ linux-2.6-new/scripts/kconfig/Makefile 2004-04-18 13:27:56.000000000 +0200
@@ -4,6 +4,9 @@
.PHONY: oldconfig xconfig gconfig menuconfig config silentoldconfig
+LC_CTYPE := $(SAVED_LC_CTYPE)
+export LC_CTYPE
+
xconfig: $(obj)/qconf
$< arch/$(ARCH)/Kconfig
--
Marcel Sebek
jabber: sebek@jabber.cz ICQ: 279852819
linux user number: 307850 GPG ID: 5F88735E
GPG FP: 0F01 BAB8 3148 94DB B95D 1FCA 8B63 CA06 5F88 735E
prev parent reply other threads:[~2004-04-18 11:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-04 12:24 Marcel Sebek
2004-04-05 21:21 ` Sam Ravnborg
2004-04-06 18:40 ` Marcel Sebek
2004-04-06 18:56 ` Måns Rullgård
2004-04-06 19:22 ` Marcel Sebek
2004-04-18 11:35 ` Marcel Sebek [this message]
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=20040418113518.GA2588@penguin.localdomain \
--to=sebek64@post.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/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
all inboxes | Powered by JetHome®