No problem with bool type in Extensible class anymore.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 17 Oct 2013 17:48:00 +0000 (19:48 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 17 Oct 2013 17:48:00 +0000 (19:48 +0200)
src/VfsNs.cpp

index da201f6..9ffff6d 100644 (file)
@@ -542,9 +542,14 @@ void VfsCatalog::updateExtendedAttributes(const std::string& path,
 
   for (it = newXattrs.begin(); it != newXattrs.end(); it++) {
     key = it->first;
-    // XXX: bug in Extensible? for bool type "true" not mapped to true
-    if (it->second.type() == typeid(bool)) value = Extensible::anyToBoolean(it->second) ? std::string("1") : std::string("0");
-    else value = Extensible::anyToString(it->second);
+
+    // used to be bug in Extensible? bool type "true" not mapped to true
+    //if (it->second.type() == typeid(bool)) value = Extensible::anyToBoolean(it->second) ? std::string("1") : std::string("0");
+    //else value = Extensible::anyToString(it->second);
+
+    // OK, it's working now :-)
+    value = Extensible::anyToString(it->second);
+
     if (oldXattrs.hasField(key)) {
       oldvalue = Extensible::anyToString(oldXattrs[key]);
       if (oldvalue != value) {