[PATCH] Enable LC_MESSAGES locale, when gettext is compiled

From: Date: Mon, 26 May 2003 11:03:32 +0000
Subject: [PATCH] Enable LC_MESSAGES locale, when gettext is compiled
Groups: php.internals 
Request: Send a blank email to internals+get-2010@lists.php.net to get a copy of this message
Hi, attached a small fix, for OS's who do not natively support the LC_MESSAGES locale. When on these platforms the gettext extension is compiled in, it is still useless, since libintl.h is the one defining the locale. Tested and working, no side-effects observed. With kind regards, Melvyn Sopacua <?php include("not_reflecting_employers_views.txt"); ?>

Index: ext/standard/string.c =================================================================== RCS file: /repository/php4/ext/standard/string.c,v retrieving revision 1.333.2.27 diff -u -r1.333.2.27 string.c --- ext/standard/string.c 16 May 2003 23:24:55 -0000 1.333.2.27 +++ ext/standard/string.c 26 May 2003 10:57:58 -0000 @@ -37,6 +37,9 @@ #ifdef HAVE_MONETARY_H # include <monetary.h> #endif +#ifdef HAVE_LIBINTL +# include <libintl.h> /* for LC_MESSAGES */ +#endif #include "scanf.h" #include "zend_API.h" #include "zend_execute.h"
« previous php.internals (#2010) next »