In
3bdff17c894d0c3d0f813d358fc45d7a263f3552 we did it for the datetime
parsing, but we use the same style in the parsing for pdiff (where the
size of the file is in the middle of the three fields) so imbueing here
as well is a good idea.
HashStringList ServerHashes;
unsigned long long ServerSize = 0;
HashStringList ServerHashes;
unsigned long long ServerSize = 0;
+ auto const &posix = std::locale("C.UTF-8");
for (char const * const * type = HashString::SupportedHashes(); *type != NULL; ++type)
{
std::string tagname = *type;
for (char const * const * type = HashString::SupportedHashes(); *type != NULL; ++type)
{
std::string tagname = *type;
string hash;
unsigned long long size;
std::stringstream ss(tmp);
string hash;
unsigned long long size;
std::stringstream ss(tmp);
ss >> hash >> size;
if (unlikely(hash.empty() == true))
continue;
ss >> hash >> size;
if (unlikely(hash.empty() == true))
continue;
string hash, filename;
unsigned long long size;
std::stringstream ss(tmp);
string hash, filename;
unsigned long long size;
std::stringstream ss(tmp);
while (ss >> hash >> size >> filename)
{
while (ss >> hash >> size >> filename)
{
string hash, filename;
unsigned long long size;
std::stringstream ss(tmp);
string hash, filename;
unsigned long long size;
std::stringstream ss(tmp);
while (ss >> hash >> size >> filename)
{
while (ss >> hash >> size >> filename)
{
string hash, filename;
unsigned long long size;
std::stringstream ss(tmp);
string hash, filename;
unsigned long long size;
std::stringstream ss(tmp);
// FIXME: all of pdiff supports only .gz compressed patches
while (ss >> hash >> size >> filename)
// FIXME: all of pdiff supports only .gz compressed patches
while (ss >> hash >> size >> filename)