|
From: weiv <wei...@gm...> - 2006-12-13 21:38:46
|
Well, that's the exact reason why I asked for a code snippet - to see if there is something obviously wrong. Anyway, what I see from your sortkeys is that when you turn on ALTERNATE_SHIFTED digit zero '0' gets shifted to quaternary level and thus ignored on primary. Therefore, you get the ordering that would be expected if 0 was removed i.e. 21, 23, 24. Now, as to why 0 is shifted - it is because at the time of execution its primary CE value is at or below variable top. This can happen due to the tailoring rule, or a runtime setting. It also might be a bug in 3.4 code. I'm not aware if there are online demos that utilize 3.4, but you could try diffing code bases and rules from 3.4 and 3.6. Thanks! Regards, v. On Dec 13, 2006, at 1:13 PM, Scott Mebust wrote: > I'm referring to the strings "2004", "2010", and "23". Numeric > collation is NOT on. I'm not sure what code snippet you'd want. > It's a standard instantiation of a collator along with option > settings. > > This may well be a problem in my usage of the ICU, which is why I'd > like a sanity check. Is there a demo page running 3.4? > > Thanks, > Scott > > > -----Original Message----- > From: icu...@li... [mailto:icu-support- > bo...@li...] On Behalf Of weiv > Sent: Wednesday, December 13, 2006 4:00 PM > To: ICU support mailing list > Subject: Re: [icu-support] Collation in ICU 3.4 with ALTERNATE > SHIFTED -strange results > > Hi Scott, > > are you referring to strings "2004" "2010" "23" or code points? Do > you have numeric collation turned on or off? Could you provide the > code snippet? > > Thank you very much for reporting this. > > Regards, > v. > > On Dec 13, 2006, at 12:53 PM, Scott Mebust wrote: > >> >> Is there a problem with 3.4 and ALTERNATE SHIFTED? I'm sorting with >> an en_US locale, a STRENGTH of 4, and ALTERNATE SHIFTED and I'm >> getting some strange results. I'm sorting a list of three >> strings: >> >> 2004 >> 2010 >> 23 >> >> and ICU 3.4 is returning the keys: >> >> 25 7E 25 82 01 06 01 06 01 26 25 7A 25 7A 26 00 >> 25 7E 25 7C 01 06 01 06 01 26 25 7A 26 25 7A 00 >> 25 7E 25 80 01 06 01 06 01 27 00 >> >> respectively and this results in an order of: >> >> 2010 >> 23 >> 2004 >> >> Without ALTERNATE SHIFTED, I get the following keys: >> >> 25 7E 25 7A 25 7A 25 82 01 08 01 08 01 26 00 >> 25 7E 25 7A 25 7C 25 7A 01 08 01 08 01 26 00 >> 25 7E 25 80 01 06 01 06 01 24 00 >> >> and this results in the order: >> >> 2004 >> 2010 >> 23 >> >> I checked against the demo page here: >> >> http://demo.icu-project.org/icu-bin/locexp?_=en_US&d_=en&x=col >> >> with and without the additional custom rule [alternate shifted] but >> this is returning different keys, leading me to think that this demo >> page might be using 3.6. >> >> Can anyone offer a quick sanity check here? It would be much >> appreciated. >> >> Scott >> >> >> --------------------------------------------------------------------- >> - >> --- >> Take Surveys. Earn Cash. Influence the Future of IT Join >> SourceForge.net's Techsay panel and you'll get the chance to share >> your opinions on IT & business topics through brief surveys - and >> earn >> cash http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> icu-support mailing list - icu...@li... To >> Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu- >> support > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and > earn cash http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > icu-support mailing list - icu...@li... To Un/ > Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > icu-support mailing list - icu...@li... > To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu- > support |