summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:06:06 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:06:06 +0000
commit20c336e6d294559fc420e8bf38f9dd5ada5b7226 (patch)
tree813f1bf507eef9515f86203bf0123f3c3f4f8264
parent2b001e3490474177119f7668dddf3a8d17073d9a (diff)
downloadcoreutils-20c336e6d294559fc420e8bf38f9dd5ada5b7226.tar.xz
(create_fullname): Don't assume char is unsigned.
-rw-r--r--src/pinky.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pinky.c b/src/pinky.c
index d26697c9b..ab52705e4 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++;
}