Regenerate configure to include the gettext.m4 change. Update
[platform/upstream/binutils.git] / gprof / gprof.c
index 2ceafd5..4a1fd50 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1983, 1998 Regents of the University of California.
+ * Copyright (c) 1983, 1998, 2001 Regents of the University of California.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
@@ -173,6 +173,9 @@ DEFUN (main, (argc, argv), int argc AND char **argv)
 #if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
   setlocale (LC_MESSAGES, "");
 #endif
+#if defined (HAVE_SETLOCALE)
+  setlocale (LC_CTYPE, "");
+#endif
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
@@ -429,18 +432,18 @@ This program is free software.  This program has absolutely no warranty.\n"));
          if (optarg != NULL)
            {
              enum demangling_styles style;
-             
+
              style = cplus_demangle_name_to_style (optarg);
-             if (style == unknown_demangling) 
+             if (style == unknown_demangling)
                {
                  fprintf (stderr,
                           _("%s: unknown demangling style `%s'\n"),
                           whoami, optarg);
                  xexit (1);
                }
-             
+
              cplus_demangle_set_style (style);
-           }
+          }
          break;
        case OPTION_NO_DEMANGLE:
          demangle = FALSE;