|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2008, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.89 2008/04/04 18:00:25 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.90 2008/04/05 03:40:15 tgl Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"mainloop.h"
|
@@ -174,13 +174,14 @@ MainLoop(FILE *source)
|
174 | 174 | /* A request for help? Be friendly and give them some guidance */
|
175 | 175 | if (pset.cur_cmd_interactive&&query_buf->len==0&&
|
176 | 176 | pg_strncasecmp(line,"help",4)==0&&
|
177 |
| -(line[4]=='\0'||line[4]==';'||isspace(line[4]))) |
| 177 | +(line[4]=='\0'||line[4]==';'||isspace((unsignedchar)line[4]))) |
178 | 178 | {
|
179 | 179 | free(line);
|
180 |
| -puts("You are using psql, the command-line interface to PostgreSQL."); |
181 |
| -puts("Enter SQL commands, or type \\? for a list of backslash options."); |
182 |
| -puts("Use \\h for SQL command help."); |
183 |
| -puts("Use \\q to quit."); |
| 180 | +puts(_("You are using psql, the command-line interface to PostgreSQL.")); |
| 181 | +puts(_("Enter SQL commands, or type \\? for a list of backslash options.")); |
| 182 | +puts(_("Use \\h for SQL command help.")); |
| 183 | +puts(_("Use \\q to quit.")); |
| 184 | +fflush(stdout); |
184 | 185 | continue;
|
185 | 186 | }
|
186 | 187 |
|
|