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:
15d25f3
)
Ensure that setlocale (LC_MESSAGES is called when appropriate.
author
John Darrington
<john@darrington.wattle.id.au>
Tue, 14 Apr 2009 02:03:52 +0000
(10:03 +0800)
committer
John Darrington
<john@darrington.wattle.id.au>
Tue, 14 Apr 2009 02:03:52 +0000
(10:03 +0800)
The wrong preprocessor macro was being tested before calling
setlocale (LC_MESSAGES, "") which resulted in translations not
being loaded.
src/libpspp/i18n.c
patch
|
blob
|
history
diff --git
a/src/libpspp/i18n.c
b/src/libpspp/i18n.c
index 2be02f26cd58e34b883ff170d50220a88c989743..fb3973f437bb737d0ba53011596da1f844588509 100644
(file)
--- a/
src/libpspp/i18n.c
+++ b/
src/libpspp/i18n.c
@@
-190,7
+190,7
@@
i18n_init (void)
{
#if ENABLE_NLS
setlocale (LC_CTYPE, "");
-#if
HAVE_
LC_MESSAGES
+#if
def
LC_MESSAGES
setlocale (LC_MESSAGES, "");
#endif
#if HAVE_LC_PAPER