summaryrefslogtreecommitdiffstats
path: root/ext/curses
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 07:19:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 07:19:58 +0000
commit3e8738890158690af92d271269193fa049a50be9 (patch)
treeae69604bddb7881e952fe6c90b93f07369069675 /ext/curses
parent2c475a15237d212b9d8097243ca93f4110574093 (diff)
downloadruby-3e8738890158690af92d271269193fa049a50be9.tar.gz
ruby-3e8738890158690af92d271269193fa049a50be9.tar.xz
ruby-3e8738890158690af92d271269193fa049a50be9.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@21508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/curses')
-rw-r--r--ext/curses/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curses/extconf.rb b/ext/curses/extconf.rb
index 46dc760a3..e3bcb1f65 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