summaryrefslogtreecommitdiff
path: root/libc/misc/locale
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-08-17 04:40:42 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-08-17 04:40:42 +0000
commit3e332011a806905ce35fc3af42118ad49d3978f5 (patch)
treecbe80d1534aeb381def6d1a3d5503f9498306084 /libc/misc/locale
parent103f8e4176171e091fa32992c0787f6e1e49de16 (diff)
Fix a cut-and-paste error. Collation should be working again.
Diffstat (limited to 'libc/misc/locale')
-rw-r--r--libc/misc/locale/locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c
index 071a8df71..b101f6dad 100644
--- a/libc/misc/locale/locale.c
+++ b/libc/misc/locale/locale.c
@@ -560,7 +560,7 @@ int _locale_set_l(const unsigned char *p, __locale_t base)
row = (((int)(*p & 0x7f)) << 7) + (p[1] & 0x7f);
assert(row < __LOCALE_DATA_NUM_LOCALES);
if (!init_cur_collate(__locale_mmap->locales[ __LOCALE_DATA_WIDTH_LOCALES
- * row + 3 + i ],
+ * row + 3 + LC_COLLATE ],
&newcol)
) {
return 0; /* calloc failed. */