/[emacs]/emacs/src/macmenu.c
ViewVC logotype

Diff of /emacs/src/macmenu.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by tamm, Wed Dec 1 15:51:22 2004 UTC revision 1.22 by tamm, Fri Dec 3 17:00:11 2004 UTC
# Line 2264  add_menu_item (MenuHandle menu, widget_v Line 2264  add_menu_item (MenuHandle menu, widget_v
2264        item_name[255] = 0;        item_name[255] = 0;
2265  #if TARGET_API_MAC_CARBON  #if TARGET_API_MAC_CARBON
2266        {        {
2267          CFStringRef string =          CFStringRef string = cfstring_create_with_utf8_cstring (item_name);
           CFStringCreateWithCString (NULL, item_name, kCFStringEncodingUTF8);  
2268    
         if (string == NULL)  
           {  
             /* Failed to interpret as UTF8.  Fall back to Mac Roman.  
                Maybe wv->name is corrupted?  */  
             string = CFStringCreateWithCString (NULL, item_name,  
                                                 kCFStringEncodingMacRoman);  
           }  
           
2269          SetMenuItemTextWithCFString (menu, pos, string);          SetMenuItemTextWithCFString (menu, pos, string);
2270          CFRelease (string);          CFRelease (string);
2271        }        }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26