From b949be82cfc78993d8cc5ec431e9193a5a07af50 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 14 Jan 2009 07:19:58 +0000 Subject: * ext/curses/extconf.rb: check ncursesw earlier than ncurses to support UTF-8 strings. non UTF-8 strings should be converted explicitly. [ruby-core:21094] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/curses/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/curses') diff --git a/ext/curses/extconf.rb b/ext/curses/extconf.rb index 46dc760a31..e3bcb1f651 100644 --- a/ext/curses/extconf.rb +++ b/ext/curses/extconf.rb @@ -9,7 +9,7 @@ headers = [] have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM have_library("tinfo", "tgetent") or have_library("termcap", "tgetent") -if have_header(*curses=%w"ncurses.h") and have_library("ncurses", "initscr") +if have_header(*curses=%w"ncurses.h") and (have_library("ncursesw", "initscr") or have_library("ncurses", "initscr")) make=true elsif have_header(*curses=%w"ncurses/curses.h") and have_library("ncurses", "initscr") make=true -- cgit v1.2.3