Author: spitzak
Date: 2008-10-21 23:52:35 -0700 (Tue, 21 Oct 2008)
New Revision: 6481
Log:
Code from STR 2067 to make UTF-8 labels work for OSX windows. Commented
out because I can't test it here.


Modified:
   trunk/src/osx/run.cxx

Modified: trunk/src/osx/run.cxx
===================================================================
--- trunk/src/osx/run.cxx       2008-10-22 06:49:47 UTC (rev 6480)
+++ trunk/src/osx/run.cxx       2008-10-22 06:52:35 UTC (rev 6481)
@@ -1613,9 +1613,16 @@
   iconlabel_ = iname;
   if (i && !parent()) {
     if (!name) name = "";
+#if 0
+    // this probably works, it was in a bug report
+    CFStringRef mlabel = CFStringCreateWithCString(NULL, name, 
kCFStringEncodingUTF8);
+    SetWindowTitleWithCFString(fl_xid(this), mlabel);
+    CFRelease(mlabel);
+#else
     Str255 pTitle;
     pTitle[0] = strlen(name); memcpy(pTitle+1, name, pTitle[0]);
     SetWTitle(xid(this), pTitle);
+#endif
     // if (!iname) iname = filename_name(name);
     // should do something with iname here, it should label the dock icon
   }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to