git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 470b2dc)
A small visit from the portability and localization police.
Sat, 5 Apr 2008 03:40:15 +0000 (03:40 +0000)
Sat, 5 Apr 2008 03:40:15 +0000 (03:40 +0000)

diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c
index bec930b8f5db61b35ae6ac5b046320268a048f09..1eb0ea44a3f1dbca864cc8dbccd5ea1dbf9f657f 100644 (file)
--- a/src/bin/psql/mainloop.c
+++ b/src/bin/psql/mainloop.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.89 2008年04月04日 18:00:25 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.90 2008年04月05日 03:40:15 tgl Exp $
*/
#include "postgres_fe.h"
#include "mainloop.h"
@@ -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;
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /