Re: [gtkmm] minor problem with sorting rows in win32



Hi Roger,

It has been some time, but life's been busy lately. Thanks for
straightening things out. I "solved" it by calling setlocale(LC_COLLATE,
"nl_NL") in my application. 

regards,

Bart

On Tue, 2004-04-20 at 20:07, Roger Leigh wrote:
> bart <gtkmm hakvoort be> writes:
> 
> > When sorting rows in a treestore i stumbled upon yet another annoying
> > win32-thingy, it's case-insensitive :`(
> > When i sort the rows in a linux-environment they'll sort like this:
> > A
> > B
> > a
> >
> > In an win32 environment it's like this:
> > A
> > a
> > B
> 
> This is a locale issue, I expect.  On my GNU/Linux system, using the
> en_GB locale, I get case-insensitive sorting too (which is actually
> what most people expect--ordering like in the index of a book).  It's
> only programmers who expect "order" to be by the encoding in the
> character set!
> 
> I guess you're using the C locale on Linux.  Try using a different
> locale and see what happens:
> 
> $ touch A a b B
> $ ls
> a  A  b  B
> $ LC_COLLATE=C ls
> A  B  a  b
> 
> 
> Regards,
> Roger




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]