More environment fiddles.
authorjbj <devnull@localhost>
Mon, 23 Aug 1999 16:05:08 +0000 (16:05 +0000)
committerjbj <devnull@localhost>
Mon, 23 Aug 1999 16:05:08 +0000 (16:05 +0000)
CVS patchset: 3246
CVS date: 1999/08/23 16:05:08

lib/header.c

index 3448b12..5a16798 100644 (file)
@@ -800,6 +800,9 @@ static int headerMatchLocale(const char *td, const char *l, const char *le)
      */
 
 #if 0
+  { const char *s, *ll, *CC, *EE, *dd;
+    char *lbuf, *t.
+
     /* Copy the buffer and parse out components on the fly. */
     lbuf = alloca(le - l + 1);
     for (s = l, ll = t = lbuf; *s; s++, t++) {
@@ -828,6 +831,7 @@ static int headerMatchLocale(const char *td, const char *l, const char *le)
        for (t = CC; *t; t++)   *t = toupper(*t);
 
     /* There are a total of 16 cases to attempt to match. */
+  }
 #endif
 
     /* Next, try stripping optional dialect and matching.  */
@@ -856,8 +860,9 @@ static char *headerFindI18NString(Header h, struct indexEntry *entry)
     const char *lang, *l, *le;
     struct indexEntry * table;
 
-    if ((lang = getenv("LC_ALL")) == NULL &&
-        (lang = getenv("LANGUAGE")) == NULL &&
+    /* XXX Drepper sez' this is the order. */
+    if ((lang = getenv("LANGUAGE")) == NULL &&
+       (lang = getenv("LC_ALL")) == NULL &&
         (lang = getenv("LC_MESSAGES")) == NULL &&
        (lang = getenv("LANG")) == NULL)
            return entry->data;