diff options
| author | YAMAMOTO Mitsuharu | 2005-04-14 09:25:41 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-04-14 09:25:41 +0000 |
| commit | 844631fa1fd1a0c3f8d53c8afd5541a684008665 (patch) | |
| tree | 80a9507d615a6e0997faf76c83ab1293a994ef19 /src | |
| parent | 42c6741e0a3bede0ed18626ae2e66b4f2a8bb37e (diff) | |
| download | emacs-844631fa1fd1a0c3f8d53c8afd5541a684008665.tar.gz emacs-844631fa1fd1a0c3f8d53c8afd5541a684008665.zip | |
(x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use ENCODE_SYSTEM
to encode title bar string.
(x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
(Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use
CFStringGetSystemEncoding to get system default string encoding.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macfns.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/macfns.c b/src/macfns.c index 357f993b0f9..970014e0960 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); |
| @@ -4362,7 +4358,12 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */) | |||
| 4362 | filename[len++] = '/'; | 4358 | filename[len++] = '/'; |
| 4363 | CFStringGetCString(reply.saveFileName, filename+len, | 4359 | CFStringGetCString(reply.saveFileName, filename+len, |
| 4364 | sizeof (filename) - len, | 4360 | sizeof (filename) - len, |
| 4365 | kCFStringEncodingUTF8); | 4361 | #if MAC_OSX |
| 4362 | kCFStringEncodingUTF8 | ||
| 4363 | #else | ||
| 4364 | CFStringGetSystemEncoding () | ||
| 4365 | #endif | ||
| 4366 | ); | ||
| 4366 | } | 4367 | } |
| 4367 | file = DECODE_FILE (make_unibyte_string (filename, | 4368 | file = DECODE_FILE (make_unibyte_string (filename, |
| 4368 | strlen (filename))); | 4369 | strlen (filename))); |