]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix file name encoding on Haiku file dialogs
authorPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 07:26:43 +0000 (07:26 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 07:26:43 +0000 (07:26 +0000)
* src/haikufns.c (Fhaiku_read_file_name): Use ENCODE_FILE and
DECODE_FILE correctly.

src/haikufns.c

index bee41e4ec0aea5744f152bf2391057a58e91ba38..e88ded23ffe7e8f52b045b86fabf282d4b816a9a 100644 (file)
@@ -2484,7 +2484,7 @@ Optional arg SAVE_TEXT, if non-nil, specifies some text to show in the entry fie
   if (!NILP (dir))
     {
       CHECK_STRING (dir);
-      dir = DECODE_FILE (dir);
+      dir = ENCODE_FILE (dir);
     }
 
   if (!NILP (save_text))
@@ -2516,7 +2516,7 @@ Optional arg SAVE_TEXT, if non-nil, specifies some text to show in the entry fie
   value = build_string (file_name);
   free (file_name);
 
-  return ENCODE_FILE (value);
+  return DECODE_FILE (value);
 }
 
 DEFUN ("haiku-put-resource", Fhaiku_put_resource, Shaiku_put_resource,