#if TARGET_API_MAC_CARBON
name = ENCODE_UTF_8 (name);
#else
- return;
+ name = ENCODE_SYSTEM (name);
#endif
BLOCK_INPUT;
#if TARGET_API_MAC_CARBON
name = ENCODE_UTF_8 (name);
#else
- return;
+ name = ENCODE_SYSTEM (name);
#endif
BLOCK_INPUT;
check_mac ();
- /* Use this general default value to start with until we know if
- this frame has a specified name. */
- Vx_resource_name = Vinvocation_name;
#ifdef MULTI_KBOARD
kb = dpyinfo->kboard;
&& !EQ (name, Qunbound)
&& !NILP (name))
error ("Invalid frame name--not a string or nil");
- Vx_resource_name = name;
frame = Qnil;
GCPRO3 (parms, name, frame);
filename[len++] = '/';
CFStringGetCString(reply.saveFileName, filename+len,
sizeof (filename) - len,
- kCFStringEncodingUTF8);
+#if MAC_OSX
+ kCFStringEncodingUTF8
+#else
+ CFStringGetSystemEncoding ()
+#endif
+ );
}
file = DECODE_FILE (make_unibyte_string (filename,
strlen (filename)));