From c18e846c693493dea36cd684ab46bc136405755c Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 9 May 2017 15:20:42 +0100 Subject: [PATCH] Fix a broken UTF-8 string on Qt MSVC builds --- qrenderdoc/Code/Interface/PersistantConfig.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Code/Interface/PersistantConfig.h b/qrenderdoc/Code/Interface/PersistantConfig.h index 19b45b2ff..0a2113f39 100644 --- a/qrenderdoc/Code/Interface/PersistantConfig.h +++ b/qrenderdoc/Code/Interface/PersistantConfig.h @@ -170,7 +170,8 @@ inline QString UnitSuffix(TimeUnit unit) else if(unit == TimeUnit::Milliseconds) return lit("ms"); else if(unit == TimeUnit::Microseconds) - return lit("µs"); + // without a BOM in the file, this will break using lit() in MSVC + return QString::fromUtf8("µs"); else if(unit == TimeUnit::Nanoseconds) return lit("ns");