/[man-db]/man-db/src/mandb.c
ViewVC logotype

Diff of /man-db/src/mandb.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by cjwatson, Mon Apr 28 14:12:43 2003 UTC revision 1.32 by cjwatson, Thu May 1 15:54:03 2003 UTC
# Line 420  int main (int argc, char *argv[]) Line 420  int main (int argc, char *argv[])
420          int purged = 0;          int purged = 0;
421          int quiet_temp = 0;          int quiet_temp = 0;
422          char **mp;          char **mp;
         char *locale;  
423    
424          int option_index; /* not used, but required by getopt_long() */          int option_index; /* not used, but required by getopt_long() */
425    
# Line 436  int main (int argc, char *argv[]) Line 435  int main (int argc, char *argv[])
435          program_name = xstrdup (basename (argv[0]));          program_name = xstrdup (basename (argv[0]));
436    
437          /* initialise the locale */          /* initialise the locale */
438          locale = xstrdup (setlocale (LC_ALL, ""));          if (!setlocale (LC_ALL, ""))
         if (!locale) {  
439                  /* Obviously can't translate this. */                  /* Obviously can't translate this. */
440                  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 "
441                               "are correct");                               "are correct");
                 locale = "C";  
         }  
442          bindtextdomain (PACKAGE, LOCALEDIR);          bindtextdomain (PACKAGE, LOCALEDIR);
443          textdomain (PACKAGE);          textdomain (PACKAGE);
444    

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26