summaryrefslogtreecommitdiff
path: root/src/haikufns.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-05-04 07:26:43 +0000
committerPo Lu <luangruo@yahoo.com>2022-05-04 07:26:43 +0000
commit273b0b95c2e21c0d2e306b497b805e07d64fc5bc (patch)
treefc42bbd004531dac236e41dfe039f11415e581b3 /src/haikufns.c
parent268713e227e8b665b1874c96ea96d1e7fccaab11 (diff)
downloademacs-273b0b95c2e21c0d2e306b497b805e07d64fc5bc.tar.gz
Fix file name encoding on Haiku file dialogs
* src/haikufns.c (Fhaiku_read_file_name): Use ENCODE_FILE and DECODE_FILE correctly.
Diffstat (limited to 'src/haikufns.c')
-rw-r--r--src/haikufns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/haikufns.c b/src/haikufns.c
index bee41e4ec0a..e88ded23ffe 100644
--- a/src/haikufns.c
+++ b/src/haikufns.c
@@ -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,