diff options
author | Jari Aalto <jari.aalto@cante.net> | 2001-11-13 17:56:06 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:54 +0000 |
commit | f73dda092b33638d2d5e9c35375f687a607b5403 (patch) | |
tree | f21584e70a444d6a1ecba0fb5e2cf79e8cce91db /locale.c | |
parent | 28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff) | |
download | bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz |
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'locale.c')
-rw-r--r-- | locale.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -29,7 +29,7 @@ #include "bashintl.h" #include "bashansi.h" #include <stdio.h> -#include <ctype.h> +#include "chartypes.h" #include "shell.h" @@ -138,7 +138,7 @@ set_locale_var (var, value) lc_all = savestring (default_locale); else { - lc_all = xmalloc (1); + lc_all = (char *)xmalloc (1); lc_all[0] = '\0'; } #if defined (HAVE_SETLOCALE) @@ -168,7 +168,7 @@ set_locale_var (var, value) return (setlocale (LC_MESSAGES, value ? value : "") != 0); # endif /* LC_MESSAGES */ } - else if (var[3] = 'N' && var[4] == 'U') /* LC_NUMERIC */ + else if (var[3] == 'N' && var[4] == 'U') /* LC_NUMERIC */ { # if defined (LC_NUMERIC) if (lc_all == 0 || *lc_all == '\0') @@ -248,7 +248,7 @@ localetrans (string, len, lenp) (locale[0] == 'C' && locale[1] == '\0') || STREQ (locale, "POSIX")) #endif { - t = xmalloc (len + 1); + t = (char *)xmalloc (len + 1); strcpy (t, string); if (lenp) *lenp = len; @@ -260,7 +260,7 @@ localetrans (string, len, lenp) translated = gettext (string); if (translated == string) /* gettext returns its argument if untranslatable */ { - t = xmalloc (len + 1); + t = (char *)xmalloc (len + 1); strcpy (t, string); if (lenp) *lenp = len; @@ -268,7 +268,7 @@ localetrans (string, len, lenp) else { tlen = strlen (translated); - t = xmalloc (tlen + 1); + t = (char *)xmalloc (tlen + 1); strcpy (t, translated); if (lenp) *lenp = tlen; |