Re: non ascii file sort
- From: ForestCreature <slyfox inbox ru>
- To: mc-devel gnome org
- Subject: Re: non ascii file sort
- Date: Tue, 11 Jul 2006 23:58:47 +0300
On Thu, 06 Jul 2006 14:35:27 +0300
Andy Shevchenko <andy pylesos interdon net> wrote:
> ForestCreature пишет:
> > Hello! I've recently noticed wrong file sort order in file list
> > pannels. I use ru_RU.KOI8-R locale. There is no alphabetic symbol
> > order (what strcmp implies?). Attached patch works for me.
> This is glibc related issue, not mc.
> strcoll would have pair case-(in)sensivity functions like
> strcmp/strcasecmp. In this case it would work on 8bit locales. In
> unicode locales we still have problem with third (fourth, ...)
> languages at the same time on FS. I (for example) don't know how to
> resolve this simple.
> With best regards,
> Andy Shevchenko. mailto: andy smile org ua
> Mc-devel mailing list
Maybe you would like mbtowc() => wcscmp()/wcscasecmp() ?
Second function is a GNU ext. It would be easy
implemented via towlower().
Should I try to implement it or it's a dirty hack?
] [Thread Prev