X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fglob.c;h=c3a478abe9e57d875f60f6a00f136eacefd69a47;hb=c9b1c72477efa03e0a90f8afd9dafebc8f4b04ef;hp=b7ec50a37b18356fc0a4f7eb10fd597dd6286886;hpb=eaf83d4cae00ae2e2ccccc3c02d5262330a31c8a;p=pspp diff --git a/src/glob.c b/src/glob.c index b7ec50a37b..c3a478abe9 100644 --- a/src/glob.c +++ b/src/glob.c @@ -124,8 +124,8 @@ int logging; static void get_date (void); -#if HAVE_LIBTERMCAP && !__CHECKER__ -static char *term_buffer; +#if HAVE_LIBTERMCAP +static char term_buffer[16384]; #endif void @@ -133,7 +133,9 @@ init_glob (int argc unused, char **argv) { /* FIXME: Allow i18n of other locale items (besides LC_MESSAGES). */ #if ENABLE_NLS +#if LC_MESSAGE setlocale (LC_MESSAGES, ""); +#endif setlocale (LC_MONETARY, ""); bindtextdomain (PACKAGE, locale_dir); textdomain (PACKAGE); @@ -271,20 +273,11 @@ init_glob (int argc unused, char **argv) int success; /* This code stolen from termcap.info, though modified. */ -#if !__CHECKER__ - term_buffer = xmalloc (2048); -#endif - termtype = getenv ("TERM"); if (!termtype) msg (FE, _("Specify a terminal type with `setenv TERM '.")); -#if __CHECKER__ - success = tgetent (NULL, termtype); -#else success = tgetent (term_buffer, termtype); -#endif - if (success <= 0) { if (success < 0)