diff options
| author | espie <> | 2005-08-08 05:53:01 +0000 |
|---|---|---|
| committer | espie <> | 2005-08-08 05:53:01 +0000 |
| commit | 63dd09a8c91fcf1f022506ffd9fcf02dcb61818b (patch) | |
| tree | a40171ec7c45f79ef44a5d2b2991fdaa92410578 /src/lib/libc/string/wcscmp.c | |
| parent | 5cf81f9663bfb2af55273bd020c777bacc636110 (diff) | |
| download | openbsd-63dd09a8c91fcf1f022506ffd9fcf02dcb61818b.tar.gz openbsd-63dd09a8c91fcf1f022506ffd9fcf02dcb61818b.tar.bz2 openbsd-63dd09a8c91fcf1f022506ffd9fcf02dcb61818b.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 'src/lib/libc/string/wcscmp.c')
| -rw-r--r-- | src/lib/libc/string/wcscmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/string/wcscmp.c b/src/lib/libc/string/wcscmp.c index d8a9aa73fb..ebbb87ca4d 100644 --- a/src/lib/libc/string/wcscmp.c +++ b/src/lib/libc/string/wcscmp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ | 1 | /* $OpenBSD: wcscmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $ */ |
| 2 | /* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ | 2 | /* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ |
| 3 | 3 | ||
| 4 | /*- | 4 | /*- |
| @@ -34,7 +34,7 @@ | |||
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
| 37 | static char *rcsid = "$OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; | 37 | static char *rcsid = "$OpenBSD: wcscmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $"; |
| 38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
| 39 | 39 | ||
| 40 | #include <wchar.h> | 40 | #include <wchar.h> |
| @@ -51,5 +51,5 @@ wcscmp(const wchar_t *s1, const wchar_t *s2) | |||
| 51 | if (*s1++ == 0) | 51 | if (*s1++ == 0) |
| 52 | return (0); | 52 | return (0); |
| 53 | /* XXX assumes wchar_t = int */ | 53 | /* XXX assumes wchar_t = int */ |
| 54 | return (*(const __nbrune_t *)s1 - *(const __nbrune_t *)--s2); | 54 | return (*(const rune_t *)s1 - *(const rune_t *)--s2); |
| 55 | } | 55 | } |
