Bob Eaton asked over in the microsoft.public.win32.programmer.international newsgroup:

I'm trying to compare two Yi Unicode-encoded strings using lstrcmp (which
underlyingly uses CompareString).

But when I compare the two strings, lstrcmp always returns 0 as if they are
equal, even if they are not (e.g. (ua2d9) (ua2e0) vs. (ua2da) (ua2e0)).

I presume it's because the OS (XP Pro SP2) doesn't have collation tables for
Yi, but I thought I'd check if there was a work-around.

Bob

Sorry, Yi has no weight in any version of Windows prior to the latest one....

The only workarounds here are:

  • use strcmp (which does a binary comparison), or
  • use Vista (which gives all of Unicode 5.0 weight)

 

This post brought to you by (U+a2d9,a.k.a. YI SYLLABLE ZZAX)