projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14aac9f
)
Relocate the locale directory.
author
John Darrington
<john@darrington.wattle.id.au>
Tue, 12 May 2009 23:22:20 +0000
(07:22 +0800)
committer
John Darrington
<john@darrington.wattle.id.au>
Tue, 12 May 2009 23:22:20 +0000
(07:22 +0800)
Thanks to Michel Boaventura for reporting this and
for providing the patch. Closes bug #26543
src/libpspp/i18n.c
patch
|
blob
|
history
diff --git
a/src/libpspp/i18n.c
b/src/libpspp/i18n.c
index 64aa005612627bbc223b155abc5075e8c32e9186..7fd7580e89d0d12fff978dbb35c6b95981758a00 100644
(file)
--- a/
src/libpspp/i18n.c
+++ b/
src/libpspp/i18n.c
@@
-24,6
+24,7
@@
#include <libintl.h>
#include <iconv.h>
#include <errno.h>
+#include <relocatable.h>
#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 */