From 6ef8ed012ed907b0dd4b49c82ff02d3279a92421 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 6 Mar 2008 22:20:55 +0000 Subject: [PATCH] use CODESET instead of 0 for nl_langinfo() svn: r8908 --- src/mzscheme/src/string.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mzscheme/src/string.c b/src/mzscheme/src/string.c index a48081bd0c..d14918388d 100644 --- a/src/mzscheme/src/string.c +++ b/src/mzscheme/src/string.c @@ -207,7 +207,11 @@ static char *nl_langinfo(int which) #else static char *mz_iconv_nl_langinfo(){ char *s; - s = nl_langinfo(0); +# if HAVE_CODESET + s = nl_langinfo(CODESET); +# else + s = NULL; +# endif if (!s) return ""; else