|
39 | 39 | * Portions Copyright (c) 1994, Regents of the University of California |
40 | 40 | * Portions taken from FreeBSD. |
41 | 41 | * |
42 | | - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.33 2004/05/25 01:00:22 momjian Exp $ |
| 42 | + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.34 2004/06/01 02:53:59 momjian Exp $ |
43 | 43 | * |
44 | 44 | *------------------------------------------------------------------------- |
45 | 45 | */ |
@@ -167,7 +167,6 @@ static void check_ok(void); |
167 | 167 | staticboolchklocale(constchar*locale); |
168 | 168 | staticvoidsetlocales(void); |
169 | 169 | staticvoidusage(constchar*progname); |
170 | | -staticvoidinit_nls(constchar*argv0); |
171 | 170 |
|
172 | 171 |
|
173 | 172 | /* |
@@ -1750,16 +1749,6 @@ usage(const char *progname) |
1750 | 1749 | printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n")); |
1751 | 1750 | } |
1752 | 1751 |
|
1753 | | -/* |
1754 | | - * Initialized NLS if enabled. |
1755 | | - */ |
1756 | | -staticvoid |
1757 | | -init_nls(constchar*argv0) |
1758 | | -{ |
1759 | | -set_pglocale(argv0,"initdb"); |
1760 | | -} |
1761 | | - |
1762 | | - |
1763 | 1752 | int |
1764 | 1753 | main(intargc,char*argv[]) |
1765 | 1754 | { |
@@ -1797,9 +1786,9 @@ main(int argc, char *argv[]) |
1797 | 1786 | * environment */ |
1798 | 1787 | char*subdirs[]= |
1799 | 1788 | {"global","pg_xlog","pg_clog","base","base/1"}; |
1800 | | -init_nls(argv[0]); |
1801 | 1789 |
|
1802 | 1790 | progname=get_progname(argv[0]); |
| 1791 | +set_pglocale(argv[0],"initdb"); |
1803 | 1792 |
|
1804 | 1793 | if (argc>1) |
1805 | 1794 | { |
|