From 2c9b488121b275873b2d6aae798007bd98f06744 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sun, 20 Dec 2020 15:57:23 +0000 Subject: [PATCH] Remove unnecessary string conversion * src/nsfns.m (ns_set_represented_filename): NSString can load List strings directly now. --- src/nsfns.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nsfns.m b/src/nsfns.m index c7956497c4c..1deddb0d38a 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -456,7 +456,7 @@ ns_set_name (struct frame *f, Lisp_Object name, int explicit) static void ns_set_represented_filename (struct frame *f) { - Lisp_Object filename, encoded_filename; + Lisp_Object filename; Lisp_Object buf = XWINDOW (f->selected_window)->contents; NSAutoreleasePool *pool; NSString *fstr; @@ -473,9 +473,7 @@ ns_set_represented_filename (struct frame *f) if (! NILP (filename)) { - encoded_filename = ENCODE_UTF_8 (filename); - - fstr = [NSString stringWithLispString:encoded_filename]; + fstr = [NSString stringWithLispString:filename]; if (fstr == nil) fstr = @""; } else -- 2.39.2