aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-12-09 17:45:17 +0000
committerBruce Momjian <bruce@momjian.us>2002-12-09 17:45:17 +0000
commita92a4010a7547e76c15b2b7d783656969c92a4b8 (patch)
treed8b86305e844b0a4d83169e235037be93f717d4a /src
parentb3b39591c135db15df543c692bdca2e6710cfbd4 (diff)
downloadpostgresql-a92a4010a7547e76c15b2b7d783656969c92a4b8.tar.gz
postgresql-a92a4010a7547e76c15b2b7d783656969c92a4b8.zip
As far as I figured from the source code this function only deals with
cleaning up locale names and nothing else. Since all the locale names are in plain ASCII I think it will be safe to use ASCII-only lower-case conversion. Nicolai Tufar
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/mb/encnames.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/utils/mb/encnames.c b/src/backend/utils/mb/encnames.c
index af8629955dc..c74808b2c02 100644
--- a/src/backend/utils/mb/encnames.c
+++ b/src/backend/utils/mb/encnames.c
@@ -2,7 +2,7 @@
* Encoding names and routines for work with it. All
* in this file is shared bedween FE and BE.
*
- * $Id: encnames.c,v 1.10 2002/09/04 20:31:31 momjian Exp $
+ * $Id: encnames.c,v 1.10.2.1 2002/12/09 17:45:17 momjian Exp $
*/
#ifdef FRONTEND
#include "postgres_fe.h"
@@ -407,7 +407,12 @@ clean_encoding_name(char *key, char *newkey)
for (p = key, np = newkey; *p != '\0'; p++)
{
if (isalnum((unsigned char) *p))
- *np++ = tolower((unsigned char) *p);
+ {
+ if (*p >= 'A' && *p <= 'Z')
+ *np++ = *p + 'a' - 'A';
+ else
+ *np++ = *p;
+ }
}
*np = '\0';
return newkey;