diff options
| author | Steven Tamm | 2004-12-03 17:00:11 +0000 |
|---|---|---|
| committer | Steven Tamm | 2004-12-03 17:00:11 +0000 |
| commit | d8f96db8dacbda24147aeab0af1c74f5ddbec8bb (patch) | |
| tree | 8366e98883775a322f0c52ae59441ef2ccc6569f /src/image.c | |
| parent | 4e4b7d76d13bcf88958964be7ca722130b086cd0 (diff) | |
| download | emacs-d8f96db8dacbda24147aeab0af1c74f5ddbec8bb.tar.gz emacs-d8f96db8dacbda24147aeab0af1c74f5ddbec8bb.zip | |
* macterm.h (cfstring_create_with_utf8_cstring): Added prototype.
* image.c (image_load_quartz2d): Use
cfstring_create_with_utf8_cstring
* macmenu.c (add_menu_item): Use
cfstring_create_with_utf8_cstring
* macfns.c (x_set_name, x_set_title): Use
cfstring_create_with_utf8_cstring
(Fx_file_dialog): Use cfstring_create_with_utf8_cstring and use
constant CFRefs instead of creating them each time for labels.
* mac.c (cfstring_create_with_utf8_cstring): Added to prevent
crashes with invalid characters.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c index 4ab672ca58e..d1925cf36e4 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2416,8 +2416,7 @@ image_load_quartz2d (f, img, png_p) | |||
| 2416 | UNGCPRO; | 2416 | UNGCPRO; |
| 2417 | return 0; | 2417 | return 0; |
| 2418 | } | 2418 | } |
| 2419 | path = CFStringCreateWithCString (NULL, SDATA (file), | 2419 | path = cfstring_create_with_utf8_cstring (SDATA (file)); |
| 2420 | kCFStringEncodingUTF8); | ||
| 2421 | url = CFURLCreateWithFileSystemPath (NULL, path, | 2420 | url = CFURLCreateWithFileSystemPath (NULL, path, |
| 2422 | kCFURLPOSIXPathStyle, 0); | 2421 | kCFURLPOSIXPathStyle, 0); |
| 2423 | CFRelease (path); | 2422 | CFRelease (path); |