From: Art Cancro Date: Sun, 26 Feb 2012 20:11:40 +0000 (-0500) Subject: Revert "calling newlocale() with wc_locales[0] as the third argument causes a segfaul... X-Git-Tag: v8.11~160^2~11 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4eabd9c189662cd5e3222e1aabedcc3f8782450a Revert "calling newlocale() with wc_locales[0] as the third argument causes a segfault; change to NULL" This reverts commit df417b479cb81f3bc0c042dd6568eca5aa1e684f. --- diff --git a/webcit/gettext.c b/webcit/gettext.c index d8b48f1b1..1e51e93ac 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -283,7 +283,7 @@ void initialize_locales(void) { wc_locales[nLocalesLoaded] = newlocale( (LC_MESSAGES_MASK|LC_TIME_MASK), AvailLang[i], - NULL + wc_locales[0] ); if (wc_locales[nLocalesLoaded] == NULL) { syslog(1, "locale for %s disabled: %s", AvailLang[i], strerror(errno));