aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@fs.tum.de>2003-02-03 13:57:15 +0000
committerAndrew Haley <aph@gcc.gnu.org>2003-02-03 13:57:15 +0000
commit7d503466fb85d355e25d5b1aa06ad8f9818a07fa (patch)
tree61a29211116a7a45cf1fe7c1aeb6ec18ea1e430d /gcc/java
parent847e8c74ac442743a3066f23c93e529b2b92043c (diff)
downloadgcc-7d503466fb85d355e25d5b1aa06ad8f9818a07fa.zip
gcc-7d503466fb85d355e25d5b1aa06ad8f9818a07fa.tar.gz
gcc-7d503466fb85d355e25d5b1aa06ad8f9818a07fa.tar.bz2
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
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog8
-rw-r--r--gcc/java/jcf-parse.c4
-rw-r--r--gcc/java/jv-scan.c4
3 files changed, 12 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index bb360c0..3343824 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,11 @@
+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>
* gjavah.c (throwable_p): Allocate 1 more byte for string.
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 20dc3ff..ac4757c 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -47,7 +47,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include <locale.h>
#endif
-#ifdef HAVE_NL_LANGINFO
+#ifdef HAVE_LANGINFO_CODESET
#include <langinfo.h>
#endif
@@ -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
are going to do something intelligent with it -- 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, "");
if (current_encoding == NULL)
current_encoding = nl_langinfo (CODESET);
diff --git a/gcc/java/jv-scan.c b/gcc/java/jv-scan.c
index 90e16e7..e1bc572 100644
--- a/gcc/java/jv-scan.c
+++ b/gcc/java/jv-scan.c
@@ -33,7 +33,7 @@ Boston, MA 02111-1307, USA. */
#include <locale.h>
#endif
-#ifdef HAVE_NL_LANGINFO
+#ifdef HAVE_LANGINFO_CODESET
#include <langinfo.h>
#endif
@@ -205,7 +205,7 @@ main (int argc, char **argv)
/* There's no point in trying to find the current encoding
unless we are going to do something intelligent with it
-- 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, "");
if (encoding == NULL)
encoding = nl_langinfo (CODESET);