|
From: Scott M. <Sco...@sa...> - 2006-12-13 22:12:51
|
Thanks. That was enough to identify what appears to be an unintentional = call to setVariableTop. Again, much appreciated. Scott -----Original Message----- From: icu...@li... = [mailto:icu...@li...] On Behalf Of weiv Sent: Wednesday, December 13, 2006 4:39 PM To: ICU support mailing list Subject: Re: [icu-support] Collation in ICU 3.4 with ALTERNATE = SHIFTED-strange results 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' =20 gets shifted to quaternary level and thus ignored on primary. =20 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 =20 > collation is NOT on. I'm not sure what code snippet you'd want. =20 > It's a standard instantiation of a collator along with option =20 > settings. > > This may well be a problem in my usage of the ICU, which is why I'd =20 > like a sanity check. Is there a demo page running 3.4? > > Thanks, > Scott > > > -----Original Message----- > From: icu...@li... [mailto:icu-support-=20 > 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 =20 > SHIFTED -strange results > > Hi Scott, > > are you referring to strings "2004" "2010" "23" or code points? Do =20 > you have numeric collation turned on or off? Could you provide the =20 > 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?_=3Den_US&d_=3Den&x=3Dcol >> >> 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 =20 >> earn >> cash http://www.techsay.com/default.php? >> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> _______________________________________________ >> 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 =20 > SourceForge.net's Techsay panel and you'll get the chance to share =20 > your opinions on IT & business topics through brief surveys - and =20 > earn cash http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV > _______________________________________________ > icu-support mailing list - icu...@li... To Un/=20 > 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 =20 > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV > _______________________________________________ > icu-support mailing list - icu...@li... > To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-=20 > 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ icu-support mailing list - icu...@li... To Un/Subscribe: = https://lists.sourceforge.net/lists/listinfo/icu-support |