From 1eda60fbf5a540bef18d69b8515df2d91bde6975 Mon Sep 17 00:00:00 2001 From: mlichvar Date: Wed, 23 Jan 2008 16:28:53 +0000 Subject: [PATCH] - support --disable-nls option --- snackmodule.c | 2 ++ whiptcl.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/snackmodule.c b/snackmodule.c index da3368a..0f5628e 100644 --- a/snackmodule.c +++ b/snackmodule.c @@ -1274,9 +1274,11 @@ static PyObject * pywstrlen(PyObject * s, PyObject * args) void init_snack(void) { PyObject * d, * m; +#ifdef ENABLE_NLS setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); +#endif m = Py_InitModule("_snack", snackModuleMethods); d = PyModule_GetDict(m); diff --git a/whiptcl.c b/whiptcl.c index 7d01f34..264ddeb 100644 --- a/whiptcl.c +++ b/whiptcl.c @@ -91,9 +91,11 @@ static int wtCmd(ClientData clientData, Tcl_Interp * interp, int argc, { 0, 0, 0, 0, 0 } }; +#ifdef ENABLE_NLS setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); +#endif optCon = poptGetContext("whiptcl", argc, argv, optionsTable, 0); -- 2.47.2