\f
/* Encoding analysis. */
-/* This list of encodings is taken from http://encoding.spec.whatwg.org/, as
- retrieved February 2014. Encodings not supported by glibc and encodings
- relevant only to HTML have been removed. */
static const char *encoding_names[] = {
+ /* These encodings are from http://encoding.spec.whatwg.org/, as retrieved
+ February 2014. Encodings not supported by glibc and encodings relevant
+ only to HTML have been removed. */
"utf-8",
"windows-1252",
"iso-8859-2",
"iso-2022-jp",
"shift_jis",
"euc-kr",
+
+ /* Added by user request. */
+ "ibm850",
+ "din_66003",
};
#define N_ENCODING_NAMES (sizeof encoding_names / sizeof *encoding_names)
ds_put_format (&s, "%s, ", encoding_names[j]);
ds_chomp (&s, ss_cstr (", "));
- tab_text_format (t, 0, i + 1, TAB_RIGHT, "%d", i + 1);
+ tab_text_format (t, 0, i + 1, TAB_RIGHT, "%zu", i + 1);
tab_text (t, 1, i + 1, TAB_LEFT, ds_cstr (&s));
ds_destroy (&s);
}
{
const char *s = encodings[j].utf8_strings[i] + prefix;
- tab_text_format (t, 1, row, TAB_RIGHT, "%d", j + 1);
+ tab_text_format (t, 1, row, TAB_RIGHT, "%zu", j + 1);
if (prefix || suffix)
{
size_t len = strlen (s) - suffix;