projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df417b4
)
Revert "calling newlocale() with wc_locales[0] as the third argument causes a segfaul...
author
Art Cancro
<ajc@uncensored.citadel.org>
Sun, 26 Feb 2012 20:11:40 +0000
(15:11 -0500)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Sun, 26 Feb 2012 20:11:40 +0000
(15:11 -0500)
This reverts commit
df417b479cb81f3bc0c042dd6568eca5aa1e684f
.
webcit/gettext.c
patch
|
blob
|
history
diff --git
a/webcit/gettext.c
b/webcit/gettext.c
index d8b48f1b123ec68ead662c7c7d6544a2f7f024de..1e51e93acfc075106e1b5af2bd01205bbc5b300a 100644
(file)
--- a/
webcit/gettext.c
+++ b/
webcit/gettext.c
@@
-283,7
+283,7
@@
void initialize_locales(void) {
wc_locales[nLocalesLoaded] = newlocale(
(LC_MESSAGES_MASK|LC_TIME_MASK),
AvailLang[i],
wc_locales[nLocalesLoaded] = newlocale(
(LC_MESSAGES_MASK|LC_TIME_MASK),
AvailLang[i],
- NULL
+ wc_locales[0]
);
if (wc_locales[nLocalesLoaded] == NULL) {
syslog(1, "locale for %s disabled: %s", AvailLang[i], strerror(errno));
);
if (wc_locales[nLocalesLoaded] == NULL) {
syslog(1, "locale for %s disabled: %s", AvailLang[i], strerror(errno));