Summary: | sort by month name using sort from coreutils (option -M) doesn't work | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Petersen <mendo> |
Component: | [OLD] Core system | Assignee: | Seemant Kulleen (RETIRED) <seemant> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bartron, pebenito |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Thomas Petersen
2004-06-22 10:22:00 UTC
one of the patches is causing this disturbing behaviour -- investigating. Also confirmed not working in 5.2.1. Hm...seems to me it's a small typo in the `i18n' patch. `Sort' keeps a table of month names in the current locale, converted to upper case (initialized in `inittables()'). However... with `i18n' applied, this initialization is done in `inittables_mb()'... the month names chars are converted to uppercase (pwc), but the unconverted characters (wc) are stored in `monthtab'. Line 2573 in `coreutils-5.2.1-i18n-0.1.patch', mblength = wcrtomb (mbc, wc, &state_wc); should be mblength = wcrtomb (mbc, pwc, &state_wc); Line numbers in older versions, coreutils-5.0.91-i18n-0.2.patch, 2671 coreutils-5.2.0-i18n-0.1.patch, 2573 200 I'll get a new revision out shortly with a fixed patchset + a new selinux patchset ETA: 1 day coreutils-5.2.1-r1 fixes this. coreutils-5.2.1 is still the latest version marked stable on x86 so most gentoo systems still contain this bug. |