wchar_t s1[2], s2[2];
s1[0] = c1;
s1[1] = 0;
s2[0] = c2;
s2[1] = 0;
struct _xlocale l = {{0}};
l.components[XLC_COLLATE] = (struct xlocale_component *)table;
return (wcscoll_l(s1, s2, &l));