libobs: Use byte sequence for non-breaking spaces

Use explicit UTF-8 byte sequence for the "no-break space" character.

Prevents issues with certain editors, and fixes the following compiler
warning on Visual C++:

warning C4819: The file contains a character that cannot be represented
in the current code page (X). Save the file in Unicode format to prevent
data loss
This commit is contained in:
jp9000
2015-10-15 01:00:14 -07:00
parent 2be5291a3e
commit 1bcbaf8e75
3 changed files with 14 additions and 8 deletions

View File

@@ -1288,13 +1288,15 @@ static inline void query_hotkeys()
enum_bindings(query_hotkey, &param);
}
#define NBSP "\xC2\xA0"
void *obs_hotkey_thread(void *arg)
{
UNUSED_PARAMETER(arg);
const char *hotkey_thread_name =
profile_store_name(obs_get_profiler_name_store(),
"obs_hotkey_thread(%g ms)", 25.);
"obs_hotkey_thread(%g"NBSP"ms)", 25.);
profile_register_root(hotkey_thread_name, (uint64_t)25000000);
while (os_event_timedwait(obs->hotkeys.stop_event, 25) == ETIMEDOUT) {