summaryrefslogtreecommitdiff
path: root/src/nsfns.m
diff options
context:
space:
mode:
authorAnders Lindgren <andlind@gmail.com>2015-12-25 10:55:38 +0100
committerAnders Lindgren <andlind@gmail.com>2015-12-25 10:55:38 +0100
commit3e7f6338d8c32bf4676ee4af036459b25efc3d9b (patch)
treeb8b5283c89c968ce7e0224a6504d8c57b3b58788 /src/nsfns.m
parentdfad97b6539af4d43a47f070ec200536021ad0a7 (diff)
downloademacs-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.m34
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);