diff options
author | 2005-08-08 05:52:59 +0000 | |
---|---|---|
committer | 2005-08-08 05:52:59 +0000 | |
commit | 89b0597ffb10e0d16bfa3de8b972a4541f2a0524 (patch) | |
tree | b2ef61505e738436223b16efce585092f08c86af /lib/libc/string/wcscmp.c | |
parent | lots of cleanup, print lots of information based on new linkages between (diff) | |
download | wireguard-openbsd-89b0597ffb10e0d16bfa3de8b972a4541f2a0524.tar.xz wireguard-openbsd-89b0597ffb10e0d16bfa3de8b972a4541f2a0524.zip |
activate LC_CTYPE for 8 bits locale.
Make sure tolower/toupper use the whole 8 bits.
okay deraadt@
thanks to everyone who tested
Diffstat (limited to 'lib/libc/string/wcscmp.c')
-rw-r--r-- | lib/libc/string/wcscmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/wcscmp.c b/lib/libc/string/wcscmp.c index d8a9aa73fb1..ebbb87ca4d7 100644 --- a/lib/libc/string/wcscmp.c +++ b/lib/libc/string/wcscmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ +/* $OpenBSD: wcscmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $ */ /* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ /*- @@ -34,7 +34,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; +static char *rcsid = "$OpenBSD: wcscmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $"; #endif /* LIBC_SCCS and not lint */ #include <wchar.h> @@ -51,5 +51,5 @@ wcscmp(const wchar_t *s1, const wchar_t *s2) if (*s1++ == 0) return (0); /* XXX assumes wchar_t = int */ - return (*(const __nbrune_t *)s1 - *(const __nbrune_t *)--s2); + return (*(const rune_t *)s1 - *(const rune_t *)--s2); } |