]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-helper.cc
prevent C++ locale number formatting in text APIs
[apt.git] / cmdline / apt-helper.cc
index b92055ab7883e8f024ee781ca71f2e61e71f943a..fd4d269c2f52003e153cd3d062917ae0a704e43f 100644 (file)
@@ -102,7 +102,7 @@ static bool DoSrvLookup(CommandLine &CmdL)                          /*{{{*/
         _error->Error(_("GetSrvRec failed for %s"), name.c_str());
 
       for (SrvRec const &I : srv_records)
-        c1out << I.target << "\t" << I.priority << "\t" << I.weight << "\t" << I.port << std::endl;
+        ioprintf(c1out, "%s\t%d\t%d\t%d\n", I.target.c_str(), I.priority, I.weight, I.port);
    }
    return true;
 }