]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror 1.1.x change.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 15 May 2003 20:00:52 +0000 (20:00 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 15 May 2003 20:00:52 +0000 (20:00 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@3734 7a7537e8-13f0-0310-91df-b6672ffda945

cups/language.c

index 1ec01c7d55dbabd6d6a52f9fff3a133bdd6b2f9f..2f8a3befde1307d21f256474e95006a6e3ddecc3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: language.c,v 1.20.2.19 2003/05/15 15:55:36 mike Exp $"
+ * "$Id: language.c,v 1.20.2.20 2003/05/15 20:00:52 mike Exp $"
  *
  *   I18N/language support for the Common UNIX Printing System (CUPS).
  *
@@ -389,6 +389,16 @@ cupsLangGet(const char *language)  /* I - Language or locale */
     }
   }
 
+ /*
+  * Restore the locale...
+  */
+
+#if defined(__APPLE__) || !defined(LC_CTYPE)
+  setlocale(LC_ALL, oldlocale);
+#else
+  setlocale(LC_CTYPE, oldlocale);
+#endif /* __APPLE__ || !LC_CTYPE */
+
  /*
   * Figure out the desired encoding...
   */
@@ -445,16 +455,6 @@ cupsLangGet(const char *language)  /* I - Language or locale */
       strcpy(real, langname);
   }
 
- /*
-  * Restore the locale...
-  */
-
-#if defined(__APPLE__) || !defined(LC_CTYPE)
-  setlocale(LC_ALL, oldlocale);
-#else
-  setlocale(LC_CTYPE, oldlocale);
-#endif /* __APPLE__ || !LC_CTYPE */
-
  /*
   * Open the messages file; the first line contains the default
   * language encoding (us-ascii, iso-8859-1, etc.), and the rest are
@@ -798,5 +798,5 @@ cups_cache_lookup(const char      *name,/* I - Name of locale */
 
 
 /*
- * End of "$Id: language.c,v 1.20.2.19 2003/05/15 15:55:36 mike Exp $".
+ * End of "$Id: language.c,v 1.20.2.20 2003/05/15 20:00:52 mike Exp $".
  */