diff options
author | Anders Lindgren <andlind@gmail.com> | 2015-12-25 10:55:38 +0100 |
---|---|---|
committer | Anders Lindgren <andlind@gmail.com> | 2015-12-25 10:55:38 +0100 |
commit | 3e7f6338d8c32bf4676ee4af036459b25efc3d9b (patch) | |
tree | b8b5283c89c968ce7e0224a6504d8c57b3b58788 /src/nsfns.m | |
parent | dfad97b6539af4d43a47f070ec200536021ad0a7 (diff) | |
download | emacs-3e7f6338d8c32bf4676ee4af036459b25efc3d9b.tar.gz |
; Re-enabled "File-name completion of non-ASCII characters on OS X (bug#22169)""
; This reverts commit d107eda498f94423d846b0e2f1be7facab417b2a.
; A follow-up to this will be made to ucs-normalize.el etc. to ensure that building from scratch works.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r-- | src/nsfns.m | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index edc02e8350b..5fa68c0a15c 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2099,39 +2099,6 @@ there was no result. */) } -DEFUN ("ns-convert-utf8-nfd-to-nfc", Fns_convert_utf8_nfd_to_nfc, - Sns_convert_utf8_nfd_to_nfc, 1, 1, 0, - doc: /* Return an NFC string that matches the UTF-8 NFD string STR. */) - (Lisp_Object str) -{ -/* TODO: If GNUstep ever implements precomposedStringWithCanonicalMapping, - remove this. */ - NSString *utfStr; - Lisp_Object ret = Qnil; - NSAutoreleasePool *pool; - - CHECK_STRING (str); - pool = [[NSAutoreleasePool alloc] init]; - utfStr = [NSString stringWithUTF8String: SSDATA (str)]; -#ifdef NS_IMPL_COCOA - if (utfStr) - utfStr = [utfStr precomposedStringWithCanonicalMapping]; -#endif - if (utfStr) - { - const char *cstr = [utfStr UTF8String]; - if (cstr) - ret = build_string (cstr); - } - - [pool release]; - if (NILP (ret)) - error ("Invalid UTF-8"); - - return ret; -} - - #ifdef NS_IMPL_COCOA /* Compile and execute the AppleScript SCRIPT and return the error @@ -3207,7 +3174,6 @@ be used as the image of the icon representing the frame. */); defsubr (&Sns_emacs_info_panel); defsubr (&Sns_list_services); defsubr (&Sns_perform_service); - defsubr (&Sns_convert_utf8_nfd_to_nfc); defsubr (&Sns_popup_font_panel); defsubr (&Sns_popup_color_panel); |