diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-12-10 23:16:45 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-12-10 23:16:45 -0800 |
commit | 7df90fa2a2b317d66750a8e595b695e6604672ac (patch) | |
tree | 954fd39df10502a6d16d608d1857bddf0bd0190e /util-print.c | |
parent | 877753b5c84dfb2236a9646713bb8072f03b3c0b (diff) | |
download | tcpdump-7df90fa2a2b317d66750a8e595b695e6604672ac.tar.gz |
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.
Diffstat (limited to 'util-print.c')
-rw-r--r-- | util-print.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { /* |