Lines Matching refs:locale
38 * its own locale for use in reporting errors to the user. Currently,
39 * this is not possible using multiple threads because the locale
41 * processes are supported until proper locale support is provided
44 * When Solaris supports a different locale in each thread, all
57 #include <locale.h>
343 * Set the locale for the current session. Currently, if multiple threads
344 * are used, the 'C' locale is specified for all cases. Once there is support
345 * for setting a thread specific locale, the requested locale will be used.
346 * If multiple processes are used, an attempt is made to set the locale of
347 * the process to the locale passed in as a parameter.
350 ses_setlocale(char *locale)
355 if (locale == NULL) {
356 locale = DCS_DEFAULT_LOCALE;
362 * Reserved for setting the locale on a per thread
364 * this, so use the default locale.
370 new_locale = setlocale(LC_ALL, locale);
374 if ((new_locale == NULL) || (strcmp(new_locale, locale) != 0)) {
375 /* silently fall back to C locale */
379 DCS_DBG(DBG_SES, "using '%s' locale", new_locale);