diff options
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 782c161c23a..3a47f8e15cf 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.41 2000/11/27 02:20:36 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.42 2000/12/03 20:45:38 tgl Exp $ */ #include "postgres.h" #include "command.h" @@ -142,7 +142,7 @@ HandleSlashCmds(const char *line, status = exec_command(new_cmd, my_line + 1, &continue_parse, query_buf); #if 0 /* turned out to be too annoying */ - if (status != CMD_UNKNOWN && isalpha(new_cmd[0])) + if (status != CMD_UNKNOWN && isalpha((unsigned char) new_cmd[0])) psql_error("Warning: this syntax is deprecated\n"); #endif } @@ -1070,8 +1070,8 @@ scan_option(char **string, enum option_type type, char *quote) if (type == OT_SQLID) for (cp = return_val; *cp; cp += PQmblen(cp, pset.encoding)) - if (isascii(*cp)) - *cp = tolower(*cp); + if (isupper((unsigned char) *cp)) + *cp = tolower((unsigned char) *cp); *string = &options_string[pos + token_end]; return return_val; |