ICU-3347 fixed setalternate and french bug
X-SVN-Rev: 13717
This commit is contained in:
parent
dfdcd53dbe
commit
453d77f04b
@ -1902,4 +1902,13 @@ public class CollationMiscTest extends TestFmwk{
|
||||
errln("Error creating UCA collator");
|
||||
}
|
||||
}
|
||||
|
||||
public void TestJ3347()
|
||||
{
|
||||
Collator coll = Collator.getInstance(Locale.FRENCH);
|
||||
((RuleBasedCollator)coll).setAlternateHandlingShifted(true);
|
||||
if (coll.compare("6", "!6") != 0) {
|
||||
errln("Jitterbug 3347 failed");
|
||||
}
|
||||
}
|
||||
}
|
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/RuleBasedCollator.java,v $
|
||||
* $Date: 2003/11/13 00:47:48 $
|
||||
* $Revision: 1.49 $
|
||||
* $Date: 2003/11/13 20:21:13 $
|
||||
* $Revision: 1.50 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -3322,8 +3322,9 @@ public final class RuleBasedCollator extends Collator
|
||||
int torder = getSecondaryFrenchCE(false);
|
||||
if (sorder == torder) {
|
||||
if ((m_srcUtilOffset_ < 0 && m_tgtUtilOffset_ < 0)
|
||||
|| m_srcUtilCEBuffer_[m_srcUtilOffset_]
|
||||
== CollationElementIterator.NULLORDER) {
|
||||
|| (m_srcUtilOffset_ >= 0
|
||||
&& m_srcUtilCEBuffer_[m_srcUtilOffset_]
|
||||
== CollationElementIterator.NULLORDER)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user