summaryrefslogtreecommitdiff
path: root/src/renderer/symbol_bucket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/symbol_bucket.cpp')
-rw-r--r--src/renderer/symbol_bucket.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/renderer/symbol_bucket.cpp b/src/renderer/symbol_bucket.cpp
index e8c0fd1829..fa12538e4c 100644
--- a/src/renderer/symbol_bucket.cpp
+++ b/src/renderer/symbol_bucket.cpp
@@ -75,11 +75,10 @@ std::vector<SymbolFeature> SymbolBucket::processFeatures(const VectorTileLayer &
if (text) {
std::string u8string = util::replaceTokens(properties.text.field, feature.properties);
- auto &convert = std::use_facet<std::ctype<char>>(std::locale());
if (properties.text.transform == TextTransformType::Uppercase) {
- convert.toupper(&u8string[0], &u8string[0] + u8string.size());
+ u8string = platform::uppercase(u8string);
} else if (properties.text.transform == TextTransformType::Lowercase) {
- convert.tolower(&u8string[0], &u8string[0] + u8string.size());
+ u8string = platform::lowercase(u8string);
}
ft.label = ucs4conv.convert(u8string);