aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/macfns.c')
-rw-r--r--src/macfns.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/macfns.c b/src/macfns.c
index 357f993b0f9..b85c4f01795 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -1895,7 +1895,7 @@ x_set_name (f, name, explicit)
1895#if TARGET_API_MAC_CARBON 1895#if TARGET_API_MAC_CARBON
1896 name = ENCODE_UTF_8 (name); 1896 name = ENCODE_UTF_8 (name);
1897#else 1897#else
1898 return; 1898 name = ENCODE_SYSTEM (name);
1899#endif 1899#endif
1900 1900
1901 BLOCK_INPUT; 1901 BLOCK_INPUT;
@@ -1977,7 +1977,7 @@ x_set_title (f, name, old_name)
1977#if TARGET_API_MAC_CARBON 1977#if TARGET_API_MAC_CARBON
1978 name = ENCODE_UTF_8 (name); 1978 name = ENCODE_UTF_8 (name);
1979#else 1979#else
1980 return; 1980 name = ENCODE_SYSTEM (name);
1981#endif 1981#endif
1982 1982
1983 BLOCK_INPUT; 1983 BLOCK_INPUT;
@@ -3637,9 +3637,6 @@ x_create_tip_frame (dpyinfo, parms, text)
3637 3637
3638 check_mac (); 3638 check_mac ();
3639 3639
3640 /* Use this general default value to start with until we know if
3641 this frame has a specified name. */
3642 Vx_resource_name = Vinvocation_name;
3643 3640
3644#ifdef MULTI_KBOARD 3641#ifdef MULTI_KBOARD
3645 kb = dpyinfo->kboard; 3642 kb = dpyinfo->kboard;
@@ -3653,7 +3650,6 @@ x_create_tip_frame (dpyinfo, parms, text)
3653 && !EQ (name, Qunbound) 3650 && !EQ (name, Qunbound)
3654 && !NILP (name)) 3651 && !NILP (name))
3655 error ("Invalid frame name--not a string or nil"); 3652 error ("Invalid frame name--not a string or nil");
3656 Vx_resource_name = name;
3657 3653
3658 frame = Qnil; 3654 frame = Qnil;
3659 GCPRO3 (parms, name, frame); 3655 GCPRO3 (parms, name, frame);
@@ -4252,8 +4248,7 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */)
4252 options.optionFlags |= kNavSelectAllReadableItem; 4248 options.optionFlags |= kNavSelectAllReadableItem;
4253 if (!NILP(prompt)) 4249 if (!NILP(prompt))
4254 { 4250 {
4255 message = 4251 message = cfstring_create_with_string (prompt);
4256 cfstring_create_with_utf8_cstring (SDATA (ENCODE_UTF_8 (prompt)));
4257 options.message = message; 4252 options.message = message;
4258 } 4253 }
4259 /* Don't set the application, let it use default. 4254 /* Don't set the application, let it use default.
@@ -4362,7 +4357,12 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */)
4362 filename[len++] = '/'; 4357 filename[len++] = '/';
4363 CFStringGetCString(reply.saveFileName, filename+len, 4358 CFStringGetCString(reply.saveFileName, filename+len,
4364 sizeof (filename) - len, 4359 sizeof (filename) - len,
4365 kCFStringEncodingUTF8); 4360#if MAC_OSX
4361 kCFStringEncodingUTF8
4362#else
4363 CFStringGetSystemEncoding ()
4364#endif
4365 );
4366 } 4366 }
4367 file = DECODE_FILE (make_unibyte_string (filename, 4367 file = DECODE_FILE (make_unibyte_string (filename,
4368 strlen (filename))); 4368 strlen (filename)));