From c6420ae10ba530fc0f15e4f7cd0c99c20e21fb73 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 27 Nov 2007 20:06:20 +0000 Subject: Ban strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() while we're at it. More to come.... svn path=/trunk/; revision=23626 --- tools/checkAPIs.pl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools') diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index ebc0828651..09b01c16a3 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -51,6 +51,14 @@ my @prohibitedAPIs= # use ep_ or se_ functions instead of these: 'malloc', 'free', + # Locale-unsafe APIs + # These may have unexpected behaviors in some locales (e.g., + # "I" isn't always the upper-case form of "i", and "i" isn't + # always the lower-case form of "I"). + 'strcasecmp', + 'strncasecmp', + 'g_strcasecmp', + 'g_strncasecmp', ); # APIs that SHOULD NOT be used in Wireshark (any more) -- cgit v1.2.3