static int do_test (void) { int result = 0; result |= test_one_locale ("C"); result |= test_one_locale ("tr_TR.UTF-8"); result |= test_one_locale ("tr_TR.ISO-8859-9"); return result; }
int main (int argc, char *argv[]) { int codepage = atoi (argv[argc - 1]); int result; int i; result = 77; for (i = 1; i < argc - 1; i++) { int ret = test_one_locale (argv[i], codepage); if (ret != 77) result = ret; } if (result == 77) { fprintf (stderr, "Skipping test: found no locale with codepage %d\n", codepage); } return result; }