Lines Matching defs:locale
17 #include <locale.h>
607 static bool Is_Default_Basic_Locale(const char *locale)
609 const AString a (locale);
660 man7: "If locale is an empty string, "", each part of the locale that
666 The locale "C" or "POSIX" is a portable locale; it exists on all conforming systems.
669 Sets the locale to the default, which is the user-default
671 The locale name is set to the value returned by GetUserDefaultLocaleName.
680 macos has UTF-8 locale only with some language like en_US.UTF-8
681 what is best way to set UTF-8 locale in macos? */
692 newLocale = "C.UTF-8"; // main UTF-8 locale in ubuntu
709 printf("NULL: can't set locale");
714 // request curent locale of program
715 const char *locale = GetLocale();
716 if (locale)
718 AString a (locale);
728 if (!Is_Default_Basic_Locale(locale))
730 // if there is some non-default and non-utf locale, we want to use it