File ht-locale-fix.diff of Package ht

From: Jan Engelhardt <jengelh@medozas.de>
Date: sometime 2006-2007?

This had become necessary when wanting to use HT on UTF-8 xterm terminals.
---
 configure.in           |    2 +-
 io/posix/sysdisplay.cc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: ht-2.0.17/configure.in
===================================================================
--- ht-2.0.17.orig/configure.in
+++ ht-2.0.17/configure.in
@@ -175,7 +175,7 @@ AC_CHECK_HEADERS([stdint.h])
 dnl AC_CONFIG_HEADER(config.h)
 CURSES_LIB=
 if test "x$NEED_CURSES" = "x1"; then
-	AC_CHECK_HEADERS(ncurses.h, AC_DEFINE(CURSES_HDR, <ncurses.h>, [This system provides (n)curses.h]) CURSES_LIB=ncurses)
+	AC_CHECK_HEADERS(ncurses.h, AC_DEFINE(CURSES_HDR, <ncurses.h>, [This system provides (n)curses.h/wide]) CURSES_LIB=ncursesw)
 	if test "x$CURSES_LIB" = "x"; then
 		AC_CHECK_HEADERS(curses.h, AC_DEFINE(CURSES_HDR, <curses.h>, [This system provides (n)curses.h]) CURSES_LIB=curses)
 		if test "x$CURSES_LIB" = "x"; then
Index: ht-2.0.17/io/posix/sysdisplay.cc
===================================================================
--- ht-2.0.17.orig/io/posix/sysdisplay.cc
+++ ht-2.0.17/io/posix/sysdisplay.cc
@@ -301,7 +301,7 @@ void CursesSystemDisplay::term_on()
 
 	setCursor(0, 0, CURSOR_OFF);
 
-//	::setlocale(LC_ALL, "");
+	::setlocale(LC_ALL, "");
 
 //	terminal = ::newterm(NULL, stdout, stdin);
 	win = ::initscr();
openSUSE Build Service is sponsored by