From: David Vallner Date: 2006-01-12T08:32:19+09:00 Subject: Re: Ruby, Unicode - ever? Yohanes Santoso wrote: >"Bruce D'Arcus" writes: > > > >>Levin Alexander wrote: >> >> >>>On 1/11/06, Bruce D'Arcus wrote: >>> >>> >>> >>>>I''d like to be able to do this and have it just work: >>>> >>>>x = ["z", "a", "�", "o", "b"] >>>>puts x.sort.inspect >>>> >>>> >>>Correct sorting of text is a quite tricky problem, because the correct >>>sort order will probably be language or application specific. >>> >>> >>> >>>>Maybe I'm missing something (and if I am, please tell me), but even >>>>when using jcode, the multi-byte character always is last. >>>> >>>> >>> >>> >>> >>Yes, I'm aware of that, but I'd rather have a default collation used >> >> > >How can you have a default collation if there is no default culture. >Collating by character binary value (what ruby does) is as neutral a >collation as it can get. Else, people would be shouting 'favouritism'. > > > > That would be making the default behaviour one that is wrong for any culture. That's not solving the problem, that's avoiding it. David Vallner