chiark / gitweb /
server/dump.c: Try to set the locale on startup.
[disorder] / server / dump.c
index 475fc8188bd837f9eee633d40c732db936cc13dd..31e08afdb7789a59590970f0185624c4d02b6764 100644 (file)
@@ -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();