From: Paul Eggert Date: Sun, 9 Jul 2006 17:06:06 +0000 (+0000) Subject: (create_fullname): Don't assume char is unsigned. X-Git-Tag: v6.0~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20c336e6d294559fc420e8bf38f9dd5ada5b7226;p=thirdparty%2Fcoreutils.git (create_fullname): Don't assume char is unsigned. --- diff --git a/src/pinky.c b/src/pinky.c index d26697c9b8..ab52705e4f 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -1,5 +1,5 @@ /* GNU's pinky. - Copyright (C) 1992-1997, 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1992-1997, 1999-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -134,8 +134,8 @@ create_fullname (const char *gecos_name, const char *user_name) if (*gecos_name == '&') { const char *uname = user_name; - if (ISLOWER (*uname)) - *r++ = TOUPPER (*uname++); + if (islower (to_uchar (*uname))) + *r++ = toupper (to_uchar (*uname++)); while (*uname) *r++ = *uname++; }