$OpenBSD: patch-j2se_src_solaris_instrument_EncodingSupport_md_c,v 1.1.1.1 2005/05/25 17:27:53 kurt Exp $
--- j2se/src/solaris/instrument/EncodingSupport_md.c.orig	Tue Oct 19 15:02:04 2004
+++ j2se/src/solaris/instrument/EncodingSupport_md.c	Tue Jan 25 22:16:09 2005
@@ -10,7 +10,10 @@
 #include <string.h>
 #include <ctype.h>
 #include <locale.h>
+#ifndef __OpenBSD__
+#define HAVE_NL_LANGINFO
 #include <langinfo.h>
+#endif
 #include <iconv.h>
 
 /* Routines to convert back and forth between Platform Encoding and UTF-8 */
@@ -45,12 +48,16 @@ utfInitialize(void)
     /* Set the locale from the environment */
     (void)setlocale(LC_ALL, "");
 
+#ifdef HAVE_NL_LANGINFO
     /* Get the codeset name */
     codeset = (char*)nl_langinfo(CODESET);  
     if ( codeset == NULL || codeset[0] == 0 ) {
         UTF_DEBUG(("NO codeset returned by nl_langinfo(CODESET)\n"));
 	return;
     }
+#else
+    codeset = "ISO-8859-1";
+#endif
     
     UTF_DEBUG(("Codeset = %s\n", codeset));
     
