17
17
*
18
18
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
19
19
*
20
- * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.8 2004/10/10 23:37:34 neilc Exp $
20
+ * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.9 2004/10/18 22:19:00 petere Exp $
21
21
*
22
22
*-------------------------------------------------------------------------
23
23
*/
28
28
29
29
#define _ (x ) gettext((x))
30
30
31
- static char * progname ;
31
+ static const char * progname ;
32
32
33
33
static void
34
34
help (void )
@@ -44,8 +44,8 @@ help(void)
44
44
printf (_ (" --libdir show location of object code libraries\n" ));
45
45
printf (_ (" --pkglibdir show location of dynamically loadable modules\n" ));
46
46
printf (_ (" --pgxs show location of extension makefile\n" ));
47
- printf (_ (" --configure show options given to ' configure' script when\n"
48
- " PostgreSQL was built\n" ));
47
+ printf (_ (" --configure show options given to \" configure\" script when\n"
48
+ " PostgreSQL was built\n" ));
49
49
printf (_ (" --version show the PostgreSQL version, then exit\n" ));
50
50
printf (_ (" --help show this help, then exit\n\n" ));
51
51
printf (_ ("Report bugs to <pgsql-bugs@postgresql.org>.\n" ));
@@ -66,7 +66,9 @@ main(int argc, char **argv)
66
66
char mypath [MAXPGPATH ];
67
67
char otherpath [MAXPGPATH ];
68
68
69
- progname = (char * ) get_progname (argv [0 ]);
69
+ set_pglocale_pgservice (argv [0 ], "pg_config" );
70
+
71
+ progname = get_progname (argv [0 ]);
70
72
71
73
if (argc < 2 )
72
74
{
@@ -108,7 +110,7 @@ main(int argc, char **argv)
108
110
109
111
if (ret )
110
112
{
111
- fprintf (stderr , "%s: could not locate my own executable\n" , progname );
113
+ fprintf (stderr , _ ( "%s: could not find own executable\n" ) , progname );
112
114
exit (1 );
113
115
}
114
116
0 commit comments