[PATCH 1/3] libwine: Add helper function to compare character weights.