Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd785b39

Browse files
committed
A small visit from the portability and localization police.
1 parent470b2dc commitd785b39

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((unsignedchar)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)

[8]ページ先頭

©2009-2025 Movatter.jp