Print this page
2964 need POSIX 2008 locale object support

@@ -92,11 +92,10 @@
 static char saved_categories[NUM_CATS][ENCODING_LEN + 1];
 static char current_locale_string[NUM_CATS * (ENCODING_LEN + 1 + 1)];
 
 static char     *currentlocale(void);
 static char     *loadlocale(int);
-static const char *__get_locale_env(int);
 
 char *
 setlocale(int category, const char *locale)
 {
         int i, j, saverr;

@@ -303,11 +302,11 @@
         }
 
         return (NULL);
 }
 
-static const char *
+const char *
 __get_locale_env(int category)
 {
         const char *env;
 
         /* 1. check LC_ALL. */

@@ -325,5 +324,16 @@
         if (env == NULL || !*env)
                 env = "C";
 
         return (env);
 }
+
+/*
+ * Detect locale storage location and store its value to _PathLocale variable
+ */
+int
+__detect_path_locale(void)
+{
+        /* XXX */
+
+        return (0);
+}