Ban strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp()
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Nov 2007 20:06:20 +0000 (20:06 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Nov 2007 20:06:20 +0000 (20:06 +0000)
while we're at it.  More to come....

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23626 f5534014-38df-0310-8fa8-9805f1628bb7

tools/checkAPIs.pl

index ebc08286512d14a16fdf1950d24f25277330be7c..09b01c16a304ae3ca1915d73730f1d59fae1a654 100755 (executable)
@@ -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)