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

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

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

revision 1.9 by cjwatson, Sat Feb 22 17:46:02 2003 UTC revision 1.10 by cjwatson, Thu May 1 15:54:03 2003 UTC
# Line 113  static void usage (int status) Line 113  static void usage (int status)
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    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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