since some platform do not install those locales by default.
SVN-Revision: 3333
char buff[4096];
size_t used;
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read CAB filename in ja_JP.UTF-8 with "hdrcharset=CP932" option.
+ * Read CAB filename in en_US.UTF-8 with "hdrcharset=CP932" option.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read eucJP filename in ja_JP.UTF-8 with "hdrcharset=eucJP" option.
+ * Read eucJP filename in en_US.UTF-8 with "hdrcharset=eucJP" option.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read UTF-8 filename in ja_JP.UTF-8 without "hdrcharset=UTF-8" option.
+ * Read UTF-8 filename in en_US.UTF-8 without "hdrcharset=UTF-8" option.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read CP866 filename in ru_RU.UTF-8 with "hdrcharset=CP866" option.
+ * Read CP866 filename in en_US.UTF-8 with "hdrcharset=CP866" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read KOI8-R filename in ru_RU.UTF-8 with "hdrcharset=KOI8-R" option.
+ * Read KOI8-R filename in en_US.UTF-8 with "hdrcharset=KOI8-R" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read UTF-8 filename in ru_RU.UTF-8 without "hdrcharset=UTF-8" option.
+ * Read UTF-8 filename in en_US.UTF-8 without "hdrcharset=UTF-8" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read eucJP filename in ja_JP.UTF-8 with "hdrcharset=eucJP" option.
+ * Read eucJP filename in en_US.UTF-8 with "hdrcharset=eucJP" option.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read CP866 filename in ru_RU.UTF-8 with "hdrcharset=CP866" option.
+ * Read CP866 filename in en_US.UTF-8 with "hdrcharset=CP866" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read KOI8-R filename in ru_RU.UTF-8 with "hdrcharset=KOI8-R" option.
+ * Read KOI8-R filename in en_US.UTF-8 with "hdrcharset=KOI8-R" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read LHA filename in ja_JP.UTF-8.
+ * Read LHA filename in en_US.UTF-8.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
/*
struct archive_entry *ae;
/*
- * Read filename in ru_RU.UTF-8 with "hdrcharset=KOI8-R" option.
+ * Read filename in en_US.UTF-8 with "hdrcharset=KOI8-R" option.
* We should correctly read two filenames.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
assertEqualInt(ARCHIVE_OK, archive_read_free(a));
/*
- * Read filename in ru_RU.UTF-8 without "hdrcharset=KOI8-R" option.
+ * Read filename in en_US.UTF-8 without "hdrcharset=KOI8-R" option.
* The filename we can properly read is only second file.
*/
struct archive_entry *ae;
/*
- * Read eucJP filename in ja_JP.UTF-8 with "hdrcharset=eucJP" option.
+ * Read eucJP filename in en_US.UTF-8 with "hdrcharset=eucJP" option.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read CP866 filename in ru_RU.UTF-8 with "hdrcharset=CP866" option.
+ * Read CP866 filename in en_US.UTF-8 with "hdrcharset=CP866" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read KOI8-R filename in ru_RU.UTF-8 with "hdrcharset=KOI8-R" option.
+ * Read KOI8-R filename in en_US.UTF-8 with "hdrcharset=KOI8-R" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read CP932 filename in ja_JP.UTF-8 with "hdrcharset=CP932" option.
+ * Read CP932 filename in en_US.UTF-8 with "hdrcharset=CP932" option.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read UTF-8 filename in ja_JP.UTF-8 without charset option
+ * Read UTF-8 filename in en_US.UTF-8 without charset option
* because the file name in the sample file is UTF-8 and
* Bit 11 of its general purpose bit flag is set.
*/
- if (NULL == setlocale(LC_ALL, "ja_JP.UTF-8")) {
- skipping("ja_JP.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read CP866 filename in ru_RU.UTF-8 with "hdrcharset=CP866" option.
+ * Read CP866 filename in en_US.UTF-8 with "hdrcharset=CP866" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read KOI8-R filename in ru_RU.UTF-8 with "hdrcharset=KOI8-R" option.
+ * Read KOI8-R filename in en_US.UTF-8 with "hdrcharset=KOI8-R" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read UTF-8 filename in ru_RU.UTF-8 without charset option
+ * Read UTF-8 filename in en_US.UTF-8 without charset option
* because the file name in the sample file is UTF-8 and
* Bit 11 of its general purpose bit flag is set.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
struct archive_entry *ae;
/*
- * Read filename in ru_RU.UTF-8 with "hdrcharset=KOI8-R" option.
+ * Read filename in en_US.UTF-8 with "hdrcharset=KOI8-R" option.
*/
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
assertEqualInt(ARCHIVE_OK, archive_read_free(a));
/*
- * Read filename in ru_RU.UTF-8 without "hdrcharset=KOI8-R" option.
+ * Read filename in en_US.UTF-8 without "hdrcharset=KOI8-R" option.
* The filename we can properly read is only second file.
*/
assert((a = archive_read_new()) != NULL);
char buff[4096];
size_t used;
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}
char buff[4096];
size_t used;
- if (NULL == setlocale(LC_ALL, "ru_RU.UTF-8")) {
- skipping("ru_RU.UTF-8 locale not available on this system.");
+ if (NULL == setlocale(LC_ALL, "en_US.UTF-8")) {
+ skipping("en_US.UTF-8 locale not available on this system.");
return;
}