590 |
/* Encode the string STR using the specified coding system |
/* Encode the string STR using the specified coding system |
591 |
for w32 system functions, if any. */ |
for w32 system functions, if any. */ |
592 |
#define ENCODE_SYSTEM(str) \ |
#define ENCODE_SYSTEM(str) \ |
593 |
(! NILP (Vw32_system_coding_system) \ |
(! NILP (Vlocale_coding_system) \ |
594 |
&& XFASTINT (Vw32_system_coding_system) != 0 \ |
&& XFASTINT (Vlocale_coding_system) != 0 \ |
595 |
? code_convert_string_norecord (str, Vw32_system_coding_system, 1) \ |
? code_convert_string_norecord (str, Vlocale_coding_system, 1) \ |
596 |
: str) |
: str) |
597 |
|
|
598 |
/* Decode the string STR using the specified coding system |
/* Decode the string STR using the specified coding system |
599 |
for w32 system functions, if any. */ |
for w32 system functions, if any. */ |
600 |
#define DECODE_SYSTEM(name) \ |
#define DECODE_SYSTEM(name) \ |
601 |
(! NILP (Vw32_system_coding_system) \ |
(! NILP (Vlocale_coding_system) \ |
602 |
&& XFASTINT (Vw32_system_coding_system) != 0 \ |
&& XFASTINT (Vlocale_coding_system) != 0 \ |
603 |
? code_convert_string_norecord (str, Vw32_system_coding_system, 0) \ |
? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ |
604 |
: str) |
: str) |
605 |
|
|
606 |
#else /* WINDOWSNT */ |
#else /* WINDOWSNT */ |
707 |
Vfile_name_coding_system is nil. */ |
Vfile_name_coding_system is nil. */ |
708 |
extern Lisp_Object Vdefault_file_name_coding_system; |
extern Lisp_Object Vdefault_file_name_coding_system; |
709 |
|
|
|
#ifdef WINDOWSNT |
|
|
/* Coding system for w32 system strings, or nil if none. */ |
|
|
extern Lisp_Object Vw32_system_coding_system; |
|
|
#endif |
|
710 |
#endif |
#endif |
711 |
|
|
712 |
/* Error signaled when there's a problem with detecting coding system */ |
/* Error signaled when there's a problem with detecting coding system */ |