--- hunspell/hunspell-1.1.12.patch.orig.port	Wed Jul  2 11:46:59 2008
+++ hunspell/hunspell-1.1.12.patch	Fri Jan 30 10:58:29 2009
@@ -316,8 +316,8 @@
  //    pass in address of array of char * pointers
  // onlycompoundsug: probably bad suggestions (need for ngram sugs, too)
  
---- misc/hunspell-1.1.12/src/tools/hunspell.cxx	2007-07-24 20:47:52.000000000 +0900
-+++ misc/build/hunspell-1.1.12/src/tools/hunspell.cxx	2008-06-20 20:06:35.469625000 +0900
+--- misc/hunspell-1.1.12/src/tools/hunspell.cxx	Tue Jul 24 13:47:52 2007
++++ misc/build/hunspell-1.1.12/src/tools/hunspell.cxx	Sat Oct 25 18:22:15 2008
 @@ -85,8 +85,10 @@
  #if ENABLE_NLS
  #ifdef HAVE_LOCALE_H
@@ -329,18 +329,16 @@
  
  #ifdef HAVE_LIBINTL_H
  #include <libintl.h>
-@@ -1227,9 +1229,11 @@
+@@ -1227,7 +1229,9 @@
  #ifdef HAVE_LOCALE_H
  	ui_lang = setlocale(LC_ALL, "");
  	textdomain("hunspell");
 +#ifdef HAVE_LANGINFO_CODESET
          ui_enc = nl_langinfo(CODESET);
++#endif
  #endif
  #endif
-+#endif
  
- #ifdef HAVE_READLINE
- 	rl_set_key("", rl_escape, rl_get_keymap());
 --- misc/hunspell-1.1.12/tests/Makefile.am	Tue Sep  4 01:25:35 2007
 +++ misc/build/hunspell-1.1.12/tests/Makefile.am	Wed Jun 18 11:53:11 2008
 @@ -6,29 +6,18 @@
@@ -487,3 +485,11 @@
  i68568utf.test \
  1706659.test \
  digits_in_words.test \
+--- misc/hunspell-1.1.12/tests/test.sh	Sun Jul 15 15:33:13 2007
++++ misc/build/hunspell-1.1.12/tests/test.sh	Sat Oct 25 18:26:17 2008
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/local/bin/bash
+ export LC_ALL="C"
+ 
+ function check_valgrind_log () {
