comparison src/coding.h @ 22342:cb6d24cf71e6

(DECODE_FILE, ENCODE_FILE): Use code_convert_string_norecord.
author Karl Heuer <kwzh@gnu.org>
date Wed, 03 Jun 1998 14:41:27 +0000
parents fc4aaf1b1772
children bad8b17b0524
comparison
equal deleted inserted replaced
22341:572ba933a4bf 22342:cb6d24cf71e6
491 /* Encode the file name NAME using the specified coding system 491 /* Encode the file name NAME using the specified coding system
492 for file names, if any. */ 492 for file names, if any. */
493 #define ENCODE_FILE(name) \ 493 #define ENCODE_FILE(name) \
494 (! NILP (Vfile_name_coding_system) \ 494 (! NILP (Vfile_name_coding_system) \
495 && XFASTINT (Vfile_name_coding_system) != 0 \ 495 && XFASTINT (Vfile_name_coding_system) != 0 \
496 ? Fencode_coding_string (name, Vfile_name_coding_system, Qt) \ 496 ? code_convert_string_norecord (name, Vfile_name_coding_system, 1) \
497 : (! NILP (Vdefault_file_name_coding_system) \ 497 : (! NILP (Vdefault_file_name_coding_system) \
498 && XFASTINT (Vdefault_file_name_coding_system) \ 498 && XFASTINT (Vdefault_file_name_coding_system) != 0 \
499 ? Fencode_coding_string (name, Vdefault_file_name_coding_system, Qt) \ 499 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 1) \
500 : name)) 500 : name))
501 501
502 /* Decode the file name NAME using the specified coding system 502 /* Decode the file name NAME using the specified coding system
503 for file names, if any. */ 503 for file names, if any. */
504 #define DECODE_FILE(name) \ 504 #define DECODE_FILE(name) \
505 (! NILP (Vfile_name_coding_system) \ 505 (! NILP (Vfile_name_coding_system) \
506 && XFASTINT (Vfile_name_coding_system) != 0 \ 506 && XFASTINT (Vfile_name_coding_system) != 0 \
507 ? Fdecode_coding_string (name, Vfile_name_coding_system, Qt) \ 507 ? code_convert_string_norecord (name, Vfile_name_coding_system, 0) \
508 : (! NILP (Vdefault_file_name_coding_system) \ 508 : (! NILP (Vdefault_file_name_coding_system) \
509 && XFASTINT (Vdefault_file_name_coding_system) \ 509 && XFASTINT (Vdefault_file_name_coding_system) != 0 \
510 ? Fdecode_coding_string (name, Vdefault_file_name_coding_system, Qt) \ 510 ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \
511 : name)) 511 : name))
512 512
513 /* Extern declarations. */ 513 /* Extern declarations. */
514 extern int decode_coding P_ ((struct coding_system *, unsigned char *, 514 extern int decode_coding P_ ((struct coding_system *, unsigned char *,
515 unsigned char *, int, int)); 515 unsigned char *, int, int));