X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff:/nls/FreeBSD/msgcat.c.patch?ds=sidebyside diff --git a/nls/FreeBSD/msgcat.c.patch b/nls/FreeBSD/msgcat.c.patch index e81ed92..10c11b7 100644 --- a/nls/FreeBSD/msgcat.c.patch +++ b/nls/FreeBSD/msgcat.c.patch @@ -1,5 +1,14 @@ ---- msgcat.c.orig Sun Oct 27 09:44:33 2002 -+++ msgcat.c Sat May 3 14:19:40 2003 +--- msgcat.c.orig 2004-11-25 11:38:30.000000000 -0800 ++++ msgcat.c 2005-02-27 12:06:52.000000000 -0800 +@@ -45,7 +45,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include @@ -54,7 +54,7 @@ #include "un-namespace.h" @@ -9,3 +18,12 @@ #define _DEFAULT_NLS_PATH "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L:/usr/local/share/nls/%L/%N.cat:/usr/local/share/nls/%N/%L" +@@ -87,7 +87,7 @@ + return (loadCat(name)); + + if (type == NL_CAT_LOCALE) +- lang = setlocale(LC_MESSAGES, NULL); ++ lang = (char *)querylocale(LC_MESSAGES_MASK, NULL); + else + lang = getenv("LANG"); +