Commit 7d503466 by Adrian Bunk Committed by Andrew Haley

Fix for java/4269:

2003-01-31 Adrian Bunk <bunk@fs.tum.de>

	Fix for java/4269:

	* jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO
	to fix bootstrap on sparc-unknown-netbsdelf1.5.
	* jcf-parse.c: Likewise.

From-SVN: r62310
parent 847e8c74
2003-01-31 Adrian Bunk <bunk@fs.tum.de>
Fix for java/4269:
* jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO
to fix bootstrap on sparc-unknown-netbsdelf1.5.
* jcf-parse.c: Likewise.
2003-01-31 Mark Wielaard <mark@klomp.org> 2003-01-31 Mark Wielaard <mark@klomp.org>
* gjavah.c (throwable_p): Allocate 1 more byte for string. * gjavah.c (throwable_p): Allocate 1 more byte for string.
......
...@@ -47,7 +47,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -47,7 +47,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include <locale.h> #include <locale.h>
#endif #endif
#ifdef HAVE_NL_LANGINFO #ifdef HAVE_LANGINFO_CODESET
#include <langinfo.h> #include <langinfo.h>
#endif #endif
...@@ -802,7 +802,7 @@ parse_source_file_1 (tree file, FILE *finput) ...@@ -802,7 +802,7 @@ parse_source_file_1 (tree file, FILE *finput)
/* There's no point in trying to find the current encoding unless we /* There's no point in trying to find the current encoding unless we
are going to do something intelligent with it -- hence the test are going to do something intelligent with it -- hence the test
for iconv. */ for iconv. */
#if defined (HAVE_LOCALE_H) && defined (HAVE_ICONV) && defined (HAVE_NL_LANGINFO) #if defined (HAVE_LOCALE_H) && defined (HAVE_ICONV) && defined (HAVE_LANGINFO_CODESET)
setlocale (LC_CTYPE, ""); setlocale (LC_CTYPE, "");
if (current_encoding == NULL) if (current_encoding == NULL)
current_encoding = nl_langinfo (CODESET); current_encoding = nl_langinfo (CODESET);
......
...@@ -33,7 +33,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -33,7 +33,7 @@ Boston, MA 02111-1307, USA. */
#include <locale.h> #include <locale.h>
#endif #endif
#ifdef HAVE_NL_LANGINFO #ifdef HAVE_LANGINFO_CODESET
#include <langinfo.h> #include <langinfo.h>
#endif #endif
...@@ -205,7 +205,7 @@ main (int argc, char **argv) ...@@ -205,7 +205,7 @@ main (int argc, char **argv)
/* There's no point in trying to find the current encoding /* There's no point in trying to find the current encoding
unless we are going to do something intelligent with it unless we are going to do something intelligent with it
-- hence the test for iconv. */ -- hence the test for iconv. */
#if defined (HAVE_LOCALE_H) && defined (HAVE_ICONV) && defined (HAVE_NL_LANGINFO) #if defined (HAVE_LOCALE_H) && defined (HAVE_ICONV) && defined (HAVE_LANGINFO_CODESET)
setlocale (LC_CTYPE, ""); setlocale (LC_CTYPE, "");
if (encoding == NULL) if (encoding == NULL)
encoding = nl_langinfo (CODESET); encoding = nl_langinfo (CODESET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment