More fixes related to locales

This commit is contained in:
Thomas Krijnen
2015-02-17 20:23:21 +00:00
parent d79120dfcc
commit 65b0f22c76
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -651,6 +651,8 @@ std::string Entity::toString(bool upper) {
Load(ids, true);
}
std::stringstream ss;
ss.imbue(std::locale::classic());
std::string dt = datatype();
if ( upper ) {
for (std::string::iterator p = dt.begin(); p != dt.end(); ++p ) *p = toupper(*p);