X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fconvert.cc;h=1787d3b70d9f33f5b95f945bcfd7f14aae039e96;hb=7a76168b662c4e4fa0eec3859e500cb0b2ac65e7;hp=07407e2fadc0ef37ec9104fd5fb171e680a81062;hpb=a562e5f7f2c9c10bfabb100efa15783260573f39;p=ardour.git diff --git a/libs/pbd/convert.cc b/libs/pbd/convert.cc index 07407e2fad..1787d3b70d 100644 --- a/libs/pbd/convert.cc +++ b/libs/pbd/convert.cc @@ -28,6 +28,8 @@ #endif #include +#include + #include "pbd/convert.h" #include "i18n.h" @@ -264,15 +266,15 @@ string_is_affirmative (const std::string& str) return false; } - /* the use of g_strncasecmp() is solely to get around issues with + /* the use of g_ascii_strncasecmp() is solely to get around issues with * charsets posed by trying to use C++ for the same * comparison. switching a std::string to its lower- or upper-case * version has several issues, but handled by default * in the way we desire when doing it in C. */ - return str == "1" || str == "y" || str == "Y" || (!g_strncasecmp(str.c_str(), "yes", str.length())) || - (!g_strncasecmp(str.c_str(), "true", str.length())); + return str == "1" || str == "y" || str == "Y" || (!g_ascii_strncasecmp(str.c_str(), "yes", str.length())) || + (!g_ascii_strncasecmp(str.c_str(), "true", str.length())); } /** A wrapper for dgettext that takes a msgid of the form Context|Text.