DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2067
Version: 1.3-current


Under Mac OS X, a UTF8 string is not correctly set as a window title by the
Fl_Window::label(const char *) member function when it contains characters
beyond the mac roman character set.

This is corrected by changing, in source file Fl_mac.cxx, the 
Fl_Window::label(const char *name,const char */*iname*/) member function
as follows:

void Fl_Window::label(const char *name, const char */*iname*/)
{
        Fl_Widget::label(name);
        if(shown()) {
                CFStringRef mlabel = CFStringCreateWithCString(NULL, (name ? 
name : ""),
kCFStringEncodingUTF8);
                SetWindowTitleWithCFString(fl_xid(this), mlabel);
                CFRelease(mlabel);
                }
}

Best wishes.


Link: http://www.fltk.org/str.php?L2067
Version: 1.3-current

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

Reply via email to