Example #1
0
def test_strcoll_u():
    orig_locale = rsetlocale(LC_COLLATE, None)
    rsetlocale(LC_COLLATE, "fr_FR.ISO8859-1")
    e_acute = u'é'.encode('latin1')
    assert strcoll_u('f', 'e') > 0
    assert strcoll_u('f', e_acute) > 0
    rsetlocale(LC_COLLATE, orig_locale)
Example #2
0
def locale_cmp(space, w_a, w_b):
    return strcoll_u(space.str_w(w_a), space.str_w(w_b))