summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2008-04-05 03:40:15 +0000
committerTom Lane2008-04-05 03:40:15 +0000
commit15bd443a6e9f11a0d045b2be7e8ce22f57cdd366 (patch)
treec5d22089d6c476a7c6cb8d0b69fc52ff6219852d
parent181b5aab95a8ea9323c466e2b6f5e92c88bf210d (diff)
A small visit from the portability and localization police.
-rw-r--r--src/bin/psql/mainloop.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c
index cbeef4637c..58bc594b37 100644
--- a/src/bin/psql/mainloop.c
+++ b/src/bin/psql/mainloop.c
@@ -174,13 +174,14 @@ MainLoop(FILE *source)
/* A request for help? Be friendly and give them some guidance */
if (pset.cur_cmd_interactive && query_buf->len == 0 &&
pg_strncasecmp(line, "help", 4) == 0 &&
- (line[4] == '\0' || line[4] == ';' || isspace(line[4])))
+ (line[4] == '\0' || line[4] == ';' || isspace((unsigned char) line[4])))
{
free(line);
- puts("You are using psql, the command-line interface to PostgreSQL.");
- puts("Enter SQL commands, or type \\? for a list of backslash options.");
- puts("Use \\h for SQL command help.");
- puts("Use \\q to quit.");
+ puts(_("You are using psql, the command-line interface to PostgreSQL."));
+ puts(_("Enter SQL commands, or type \\? for a list of backslash options."));
+ puts(_("Use \\h for SQL command help."));
+ puts(_("Use \\q to quit."));
+ fflush(stdout);
continue;
}