From 2556e737ec044e39cd8afc6f00cd0f156b9d6ede Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 19 Oct 2000 03:12:44 +0000 Subject: * Makefile.in: add miscfuncs.cc * miscfuncs.cc: new, miscellaneous functions * winsup.h: define table-driven tolower/toupper * environ.cc: use them * fhandler_console.cc: ditto * fhandler_termios: ditto * path.cc: ditto (strncasematch, strcasematch, strcasestr): move to miscfuncs.cc --- winsup/cygwin/environ.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/environ.cc') diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index b93d7e661..016d0368d 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -354,7 +354,7 @@ ucenv (char *p, char *eq) we only do it for the first process in a session group. */ for (; p < eq; p++) if (islower (*p)) - *p = toupper (*p); + *p = cyg_toupper (*p); } /* Parse CYGWIN options */ @@ -538,8 +538,8 @@ environ_init (char **envp, int envc) { for (int i = 0; conv_envvars[i].name != NULL; i++) { - conv_start_chars[tolower(conv_envvars[i].name[0])] = 1; - conv_start_chars[toupper(conv_envvars[i].name[0])] = 1; + conv_start_chars[cyg_tolower(conv_envvars[i].name[0])] = 1; + conv_start_chars[cyg_toupper(conv_envvars[i].name[0])] = 1; } initted = 1; } -- cgit v1.2.3