/*
* This file is part of DisOrder.
- * Copyright (C) 2004, 2005, 2007, 2008, 2011 Richard Kettlewell
+ * Copyright (C) 2004, 2005, 2007-2011 Richard Kettlewell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
};
/* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
xprintf("Usage:\n"
" disorder-dump [OPTIONS] --dump|--undump PATH\n"
" disorder-dump [OPTIONS] --recompute-aliases\n"
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();
disorder_fatal(0, "specify only a dump file name");
path = argv[optind];
}
+ config_per_user = 0;
if(config_read(0, NULL))
disorder_fatal(0, "cannot read configuration");
if(dump) {