Skip to content

Commit d785b39

Browse files
committed
A small visit from the portability and localization police.
1 parent 470b2dc commit d785b39

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/bin/psql/mainloop.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
55
*
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 $
77
*/
88
#include "postgres_fe.h"
99
#include "mainloop.h"
@@ -174,13 +174,14 @@ MainLoop(FILE *source)
174174
/* A request for help? Be friendly and give them some guidance */
175175
if (pset.cur_cmd_interactive && query_buf->len == 0 &&
176176
pg_strncasecmp(line, "help", 4) == 0 &&
177-
(line[4] == '\0' || line[4] == ';' || isspace(line[4])))
177+
(line[4] == '\0' || line[4] == ';' || isspace((unsigned char) line[4])))
178178
{
179179
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);
184185
continue;
185186
}
186187

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy