A small visit from the portability and localization police.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2008 03:40:15 +0000 (03:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Apr 2008 03:40:15 +0000 (03:40 +0000)
src/bin/psql/mainloop.c

index cbeef4637c3a535a15a0e7bdd928adca22ae1c9c..58bc594b37232f9f7f1eb0d80d8ad75d7e66c320 100644 (file)
@@ -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;
                }