&& strNE("0", bad_lang_use_once)))));
bool done = FALSE;
/* setlocale() return vals; not copied so must be looked at immediately */
- char * sl_result[NOMINAL_LC_ALL_INDEX + 1];
+ const char * sl_result[NOMINAL_LC_ALL_INDEX + 1];
/* current locale for given category; should have been copied so aren't
* volatile */
- char * curlocales[NOMINAL_LC_ALL_INDEX + 1];
+ const char * curlocales[NOMINAL_LC_ALL_INDEX + 1];
char * locale_param;
* English, it comes down to if the locale's name ends in something like
* "UTF-8". It errs on the side of not being a UTF-8 locale. */
- char *save_input_locale = NULL;
+ const char *save_input_locale = NULL;
STRLEN final_pos;
# ifdef LC_ALL
final_pos = strlen(save_input_locale) - 1;
if (final_pos >= 3) {
- char *name = save_input_locale;
+ const char *name = save_input_locale;
/* Find next 'U' or 'u' and look from there */
while ((name += strcspn(name, "Uu") + 1)
# else
- char * save_locale = NULL;
+ const char * save_locale = NULL;
bool locale_is_C = FALSE;
/* We have a critical section to prevent another thread from changing the