mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(DECODE_FILE, ENCODE_FILE):
Use code_convert_string_norecord.
This commit is contained in:
parent
ecec61c199
commit
afee915020
1 changed files with 6 additions and 6 deletions
12
src/coding.h
12
src/coding.h
|
|
@ -493,10 +493,10 @@ struct coding_system
|
|||
#define ENCODE_FILE(name) \
|
||||
(! NILP (Vfile_name_coding_system) \
|
||||
&& XFASTINT (Vfile_name_coding_system) != 0 \
|
||||
? Fencode_coding_string (name, Vfile_name_coding_system, Qt) \
|
||||
? code_convert_string_norecord (name, Vfile_name_coding_system, 1) \
|
||||
: (! NILP (Vdefault_file_name_coding_system) \
|
||||
&& XFASTINT (Vdefault_file_name_coding_system) \
|
||||
? Fencode_coding_string (name, Vdefault_file_name_coding_system, Qt) \
|
||||
&& XFASTINT (Vdefault_file_name_coding_system) != 0 \
|
||||
? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \
|
||||
: name))
|
||||
|
||||
/* Decode the file name NAME using the specified coding system
|
||||
|
|
@ -504,10 +504,10 @@ struct coding_system
|
|||
#define DECODE_FILE(name) \
|
||||
(! NILP (Vfile_name_coding_system) \
|
||||
&& XFASTINT (Vfile_name_coding_system) != 0 \
|
||||
? Fdecode_coding_string (name, Vfile_name_coding_system, Qt) \
|
||||
? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \
|
||||
: (! NILP (Vdefault_file_name_coding_system) \
|
||||
&& XFASTINT (Vdefault_file_name_coding_system) \
|
||||
? Fdecode_coding_string (name, Vdefault_file_name_coding_system, Qt) \
|
||||
&& XFASTINT (Vdefault_file_name_coding_system) != 0 \
|
||||
? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \
|
||||
: name))
|
||||
|
||||
/* Extern declarations. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue