+2013-03-07 Daiki Ueno <ueno@gnu.org>
+
+ * setlocale.c (libintl_setlocale): Signal a change of the loaded
+ catalogs by incrementing _nl_msg_cat_cntr.
+ Reported by Guido Flohr at <https://savannah.gnu.org/bugs/?38162>.
+
2013-05-30 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (tiny change)
* Makefile.in (SHELL): Use @SHELL@ instead of /bin/sh.
}
/* All steps were successful. */
+ ++_nl_msg_cat_cntr;
free (saved_locale);
return setlocale (LC_ALL, NULL);
}
else
{
+ char *result;
const char *name =
gl_locale_name_environ (category, category_to_name (category));
if (name == NULL)
name = gl_locale_name_default ();
- return setlocale_single (category, name);
+ result = setlocale_single (category, name);
+ if (result != NULL)
+ ++_nl_msg_cat_cntr;
+ return result;
}
}
else
}
/* It was really successful. */
+ ++_nl_msg_cat_cntr;
free (saved_locale);
return setlocale (LC_ALL, NULL);
}
else
# endif
- return setlocale_single (category, locale);
+ {
+ char *result = setlocale_single (category, locale);
+ if (result != NULL)
+ ++_nl_msg_cat_cntr;
+ return result;
+ }
}
}