Browse Source

Fix a cut-and-paste error. Collation should be working again.

Manuel Novoa III 22 years ago
parent
commit
3e332011a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/misc/locale/locale.c

+ 1 - 1
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. */