From: John Darrington Date: Tue, 12 May 2009 23:22:20 +0000 (+0800) Subject: Relocate the locale directory. X-Git-Tag: v0.7.3~128 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e674bbb5a058689708edebe6a06045015d223f;hp=14aac9fe7a7efbb6c9bded2ed5969a643cb76645;p=pspp-builds.git Relocate the locale directory. Thanks to Michel Boaventura for reporting this and for providing the patch. Closes bug #26543 --- diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 64aa0056..7fd7580e 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "assertion.h" #include "hmapx.h" #include "hash-functions.h" @@ -196,7 +197,7 @@ i18n_init (void) #if HAVE_LC_PAPER setlocale (LC_PAPER, ""); #endif - bindtextdomain (PACKAGE, locale_dir); + bindtextdomain (PACKAGE, relocate(locale_dir)); textdomain (PACKAGE); #endif /* ENABLE_NLS */