Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 142663 Details for
Bug 186349
sys-apps/coreutils-6.9-r1 sort --random-sort should ignore locale
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for sort -R in multibyte environments.
sort-mb-random.patch (text/plain), 638 bytes, created by
Steffen Wolf
on 2008-02-04 16:16:00 UTC
(
hide
)
Description:
Fix for sort -R in multibyte environments.
Filename:
MIME Type:
Creator:
Steffen Wolf
Created:
2008-02-04 16:16:00 UTC
Size:
638 bytes
patch
obsolete
>This patch repairs the random sorting in multibyte environments. >It has to be applied after the generic/000_all_coreutils-i18n.patch >especially after inserting the keycompare_mb() function. > >--- sort.c 2008-02-03 10:22:18.000000000 +0100 >+++ sort-random-mb.c 2008-02-03 10:21:10.000000000 +0100 >@@ -2297,7 +2297,9 @@ > 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; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186349
: 142663