chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c8d29a7
)
server/dump.c: Try to set the locale on startup.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 24 Jul 2018 19:02:27 +0000
(20:02 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 24 Jul 2018 19:02:27 +0000
(20:02 +0100)
Otherwise we get annoying cronspam if the configuration contains funny
characters.
server/dump.c
patch
|
blob
|
blame
|
history
diff --git
a/server/dump.c
b/server/dump.c
index 475fc8188bd837f9eee633d40c732db936cc13dd..31e08afdb7789a59590970f0185624c4d02b6764 100644
(file)
--- a/
server/dump.c
+++ b/
server/dump.c
@@
-377,6
+377,8
@@
int main(int argc, char **argv) {
FILE *fp;
mem_init();
+ if(!setlocale(LC_CTYPE, ""))
+ disorder_error(errno, "error calling setlocale");
while((n = getopt_long(argc, argv, "hVc:dDurRaPR", options, 0)) >= 0) {
switch(n) {
case 'h': help();