texlive[49779] Build/source/texk/web2c: Don't set locale without

commits+ascherer at tug.org commits+ascherer at tug.org
Mon Jan 21 07:54:02 CET 2019


Revision: 49779
          http://tug.org/svn/texlive?view=revision&revision=49779
Author:   ascherer
Date:     2019-01-21 07:54:02 +0100 (Mon, 21 Jan 2019)
Log Message:
-----------
Don't set locale without t10n.

MinGW32 in particular and MS Windows in general do not have the
LC_MESSAGES facet for i18n.  We could squash the facets to LC_ALL,
but that is just too much for our purposes.  Windows maintainers
will have to come up with a more specific solution if they want to
activate the gettext stuff.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/cwebboot.cin
    trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch

Modified: trunk/Build/source/texk/web2c/cwebboot.cin
===================================================================
--- trunk/Build/source/texk/web2c/cwebboot.cin	2019-01-21 01:23:22 UTC (rev 49778)
+++ trunk/Build/source/texk/web2c/cwebboot.cin	2019-01-21 06:54:02 UTC (rev 49779)
@@ -33,15 +33,15 @@
 /*:85*//*88:*/
 #line 1211 "cwebdir/comm-w2c.ch"
 
-#include <locale.h> 
-
 #ifndef HAVE_GETTEXT
 #define HAVE_GETTEXT 0
 #endif
 
 #if HAVE_GETTEXT
+#include <locale.h> 
 #include <libintl.h> 
 #else
+#define setlocale(A,B) ""
 #define bindtextdomain(A,B) ""
 #define textdomain(A) ""
 #define gettext(A) A

Modified: trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch	2019-01-21 01:23:22 UTC (rev 49778)
+++ trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch	2019-01-21 06:54:02 UTC (rev 49779)
@@ -1209,15 +1209,15 @@
 @d _(STRING) gettext(STRING)
 
 @<Include files@>=
-#include <locale.h>
-@#
 #ifndef HAVE_GETTEXT
 #define HAVE_GETTEXT 0
 #endif
 @#
 #if HAVE_GETTEXT
+#include <locale.h>
 #include <libintl.h>
 #else
+#define setlocale(A,B) ""
 #define bindtextdomain(A,B) ""
 #define textdomain(A) ""
 #define gettext(A) A



More information about the tex-live-commits mailing list