113 |
int main (int argc, char *argv[]) |
int main (int argc, char *argv[]) |
114 |
{ |
{ |
115 |
int c, global = 0, cat = 0; |
int c, global = 0, cat = 0; |
116 |
char *alt_system = ""; |
const char *alt_system = ""; |
117 |
char *path_string; |
char *path_string; |
118 |
int option_index; /* not used, but required by getopt_long() */ |
int option_index; /* not used, but required by getopt_long() */ |
|
char *locale; |
|
119 |
|
|
120 |
program_name = xstrdup (basename (argv[0])); |
program_name = xstrdup (basename (argv[0])); |
121 |
/* initialise the locale */ |
/* initialise the locale */ |
122 |
locale = setlocale (LC_ALL, ""); |
if (!setlocale (LC_ALL, "")) |
|
if (locale) |
|
|
locale = xstrdup (locale); |
|
|
else { |
|
123 |
/* Obviously can't translate this. */ |
/* Obviously can't translate this. */ |
124 |
error (0, 0, "can't set the locale; make sure $LC_* and $LANG " |
error (0, 0, "can't set the locale; make sure $LC_* and $LANG " |
125 |
"are correct"); |
"are correct"); |
|
locale = "C"; |
|
|
} |
|
126 |
bindtextdomain (PACKAGE, LOCALEDIR); |
bindtextdomain (PACKAGE, LOCALEDIR); |
127 |
textdomain (PACKAGE); |
textdomain (PACKAGE); |
128 |
|
|