From patchwork Mon Oct 8 16:18:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Mazur X-Patchwork-Id: 1566311 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9DC354025F for ; Mon, 8 Oct 2012 16:25:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754021Ab2JHQZu (ORCPT ); Mon, 8 Oct 2012 12:25:50 -0400 Received: from shrek-modem1.podlesie.net ([83.18.25.171]:41126 "EHLO shrek.podlesie.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200Ab2JHQZs (ORCPT ); Mon, 8 Oct 2012 12:25:48 -0400 X-Greylist: delayed 385 seconds by postgrey-1.27 at vger.kernel.org; Mon, 08 Oct 2012 12:25:48 EDT Received: from geronimo.kostuchna.emnet (localhost [127.0.0.1]) by shrek.podlesie.net (Postfix) with ESMTP id D0D0FDE6; Mon, 8 Oct 2012 18:19:20 +0200 (CEST) From: Krzysztof Mazur To: mmarek@suse.cz Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Mazur Subject: [PATCH] menuconfig: fix extended colors ncurses support Date: Mon, 8 Oct 2012 18:18:22 +0200 Message-Id: <1349713102-3301-1-git-send-email-krzysiek@podlesie.net> X-Mailer: git-send-email 1.7.12.2.2.g1c3c581 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org The ncurses library allows for extended colors. The support for extended colors support depends on wide-character support. ncurses headers enable extended colors (NCURSES_EXT_COLORS) only when wide-character support is enabled (NCURSES_WIDECHAR). The "make menuconfig" uses wide-character ncursesw library, which can be compiled with wide-character support, but does not define NCURSES_WIDECHAR and it's using headers without wide-character (and extended colors) support. This fixes problems with colors on systems with enabled extended colors (like PLD Linux). Without this patch "make menuconfig" is hard to use. Signed-off-by: Krzysztof Mazur --- scripts/kconfig/lxdialog/check-lxdialog.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh index e3b12c0..5a70e8b 100644 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh @@ -21,6 +21,7 @@ ccflags() { if [ -f /usr/include/ncursesw/curses.h ]; then echo '-I/usr/include/ncursesw -DCURSES_LOC=""' + echo ' -DNCURSES_WIDECHAR=1' elif [ -f /usr/include/ncurses/ncurses.h ]; then echo '-I/usr/include/ncurses -DCURSES_LOC=""' elif [ -f /usr/include/ncurses/curses.h ]; then