From 7df90fa2a2b317d66750a8e595b695e6604672ac Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 10 Dec 2018 23:16:45 -0800 Subject: Add, and use, macros to do locale-independent case mapping. This means we get the same behavior in Turkish locales (where, if we aren't in the C locale, we might get lower-case "i" mapped to upper-case "I with dot" and upper-case "I" mapped to lower-case "i without dot), and may also suppress some shortening warnings from MSVC. --- util-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-print.c') diff --git a/util-print.c b/util-print.c index 5a8c8fe5..aa6cf87f 100644 --- a/util-print.c +++ b/util-print.c @@ -892,7 +892,7 @@ txtproto_print(netdissect_options *ndo, const u_char *pptr, u_int len, /* Capitalize the protocol name */ for (pnp = protoname; *pnp != '\0'; pnp++) - ND_PRINT("%c", toupper((u_char)*pnp)); + ND_PRINT("%c", ND_TOUPPER((u_char)*pnp)); if (print_this) { /* -- cgit v1.2.1