disabling utf8 for OSX. It's not working 100% and it's breaking other things
authorDalai Felinto <dfelinto@gmail.com>
Fri, 21 Oct 2011 06:45:08 +0000 (06:45 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 21 Oct 2011 06:45:08 +0000 (06:45 +0000)
intern/ghost/intern/GHOST_SystemCocoa.mm

index 1dfb8e36422d7019a3037474841e77fd75c2db25..c3c0c5914442c941fd37ab9c72a2d683f57f0e3f 100644 (file)
@@ -1706,6 +1706,10 @@ GHOST_TSuccess GHOST_SystemCocoa::handleKeyEvent(void *eventPtr)
                                        utf8_buf[0] = '\0';
                                }
                        }
+
+                       /* XXX the above code gives us the right utf8, however if we pass it along Font Object doesn't work.
+                          let's leave utf8 disabled for OSX before we fix that */
+                       utf8_buf[0] = '\0';//to be removed once things are working
                        
                        if ((keyCode == GHOST_kKeyQ) && (m_modifierMask & NSCommandKeyMask))
                                break; //Cmd-Q is directly handled by Cocoa