]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debsystem.cc
Convert most callers of isspace() to isspace_ascii()
[apt.git] / apt-pkg / deb / debsystem.cc
index dcd115b50723cef28110ae092811eb2d9ed44156..56ca8f4c6dd564d9e4d138f673bbe505066b8c72 100644 (file)
@@ -399,10 +399,10 @@ std::vector<std::string> debSystem::SupportedArchitectures()              /*{{{*/
         char* tok_saveptr;
         char* arch = strtok_r(buf, " ", &tok_saveptr);
         while (arch != NULL) {
-           for (; isspace(*arch) != 0; ++arch);
+           for (; isspace_ascii(*arch) != 0; ++arch);
            if (arch[0] != '\0') {
               char const* archend = arch;
-              for (; isspace(*archend) == 0 && *archend != '\0'; ++archend);
+              for (; isspace_ascii(*archend) == 0 && *archend != '\0'; ++archend);
               string a(arch, (archend - arch));
               if (std::find(archs.begin(), archs.end(), a) == archs.end())
                  archs.push_back(a);