coreutils/i18n-random.diff

17 lines
580 B
Diff
Raw Normal View History

Index: src/sort.c
===================================================================
--- src/sort.c.orig 2010-05-04 17:29:12.395359111 +0200
+++ src/sort.c 2010-05-04 17:29:59.979859336 +0200
@@ -2494,7 +2494,10 @@ keycompare_mb (const struct line *a, con
size_t lenb = limb <= textb ? 0 : limb - textb;
/* Actually compare the fields. */
- if (key->numeric | key->general_numeric)
+
+ if (key->random)
+ diff = compare_random (texta, lena, textb, lenb);
+ else if (key->numeric | key->general_numeric)
{
char savea = *lima, saveb = *limb;