mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Many more String changes, so that finally the String class can store its internal data as either utf8, 16 or 32 - this is controlled by a flag JUCE_STRING_UTF_TYPE. It's currently set to utf-8 by default.
This commit is contained in:
parent
f471f0a72d
commit
533e7ba795
46 changed files with 993 additions and 706 deletions
|
|
@ -268,7 +268,7 @@ namespace LinuxErrorHandling
|
|||
char requestStr[64] = { 0 };
|
||||
|
||||
XGetErrorText (display, event->error_code, errorStr, 64);
|
||||
XGetErrorDatabaseText (display, "XRequest", String (event->request_code).toCString(), "Unknown", requestStr, 64);
|
||||
XGetErrorDatabaseText (display, "XRequest", String (event->request_code).toUTF8(), "Unknown", requestStr, 64);
|
||||
DBG ("ERROR: X returned " + String (errorStr) + " for operation " + String (requestStr));
|
||||
#endif
|
||||
|
||||
|
|
@ -345,7 +345,7 @@ void MessageManager::doPlatformSpecificInitialisation()
|
|||
if (displayName.isEmpty())
|
||||
displayName = ":0.0";
|
||||
|
||||
display = XOpenDisplay (displayName.toCString());
|
||||
display = XOpenDisplay (displayName.toUTF8());
|
||||
|
||||
if (display != 0) // This is not fatal! we can run headless.
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue