[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 10284ca3d3: Encode and decode filenames correctly on Haiku
From: |
Po Lu |
Subject: |
Re: master 10284ca3d3: Encode and decode filenames correctly on Haiku |
Date: |
Wed, 04 May 2022 15:26:02 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> Isn't this backwards? File names need to be _encoded_ when passed to
> system APIs, and _decoded_ when returning them back to Emacs.
Ah, damn. I got confused by the order of the wording in this comment:
/* Encode or decode a file name, to or from a unibyte string suitable
for passing to C library functions. */
namely how the function immediately following that is
`decode_file_name', but the comment talks about encoding first.
Thanks for pointing this out.