Fix file name encoding on Haiku file dialogs
* src/haikufns.c (Fhaiku_read_file_name): Use ENCODE_FILE and DECODE_FILE correctly.
This commit is contained in:
parent
268713e227
commit
273b0b95c2
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue