diff options
| author | Karoly Lorentey | 2005-03-19 17:55:13 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-03-19 17:55:13 +0000 |
| commit | 392711ede18168618ac6eedd4fdf5910d11a2714 (patch) | |
| tree | 29940aa43a5fb4527b4111db7fb7aa2b57b444fd /src/coding.h | |
| parent | 04e9296582b1bbe7b2c5911691d9fbe4a9581382 (diff) | |
| parent | 951f97e67d904729032b476caf5f7c2e7e303d73 (diff) | |
| download | emacs-392711ede18168618ac6eedd4fdf5910d11a2714.tar.gz emacs-392711ede18168618ac6eedd4fdf5910d11a2714.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 39-44, 184-191)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-184
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-185
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-186
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-187
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-188
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-189
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-190
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-191
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-39
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-40
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-41
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-42
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-43
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-44
Merge from emacs--cvs-trunk--0
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-311
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/coding.h b/src/coding.h index ed31a7d7c94..f363032228d 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Header for coding system handler. | 1 | /* Header for coding system handler. |
| 2 | Copyright (C) 2004 Free Software Foundation, Inc. | 2 | Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
| 3 | Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN. | 3 | Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN. |
| 4 | Licensed to the Free Software Foundation. | 4 | Licensed to the Free Software Foundation. |
| 5 | 5 | ||
| @@ -591,9 +591,8 @@ struct coding_system | |||
| 591 | ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \ | 591 | ? code_convert_string_norecord (name, Vdefault_file_name_coding_system, 0) \ |
| 592 | : name)) | 592 | : name)) |
| 593 | 593 | ||
| 594 | #ifdef WINDOWSNT | ||
| 595 | /* Encode the string STR using the specified coding system | 594 | /* Encode the string STR using the specified coding system |
| 596 | for w32 system functions, if any. */ | 595 | for system functions, if any. */ |
| 597 | #define ENCODE_SYSTEM(str) \ | 596 | #define ENCODE_SYSTEM(str) \ |
| 598 | (! NILP (Vlocale_coding_system) \ | 597 | (! NILP (Vlocale_coding_system) \ |
| 599 | && !EQ (Vlocale_coding_system, make_number (0)) \ | 598 | && !EQ (Vlocale_coding_system, make_number (0)) \ |
| @@ -601,20 +600,13 @@ struct coding_system | |||
| 601 | : str) | 600 | : str) |
| 602 | 601 | ||
| 603 | /* Decode the string STR using the specified coding system | 602 | /* Decode the string STR using the specified coding system |
| 604 | for w32 system functions, if any. */ | 603 | for system functions, if any. */ |
| 605 | #define DECODE_SYSTEM(name) \ | 604 | #define DECODE_SYSTEM(name) \ |
| 606 | (! NILP (Vlocale_coding_system) \ | 605 | (! NILP (Vlocale_coding_system) \ |
| 607 | && !EQ (Vlocale_coding_system, make_number (0)) \ | 606 | && !EQ (Vlocale_coding_system, make_number (0)) \ |
| 608 | ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ | 607 | ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ |
| 609 | : str) | 608 | : str) |
| 610 | 609 | ||
| 611 | #else /* WINDOWSNT */ | ||
| 612 | |||
| 613 | #define ENCODE_SYSTEM(str) string_make_unibyte(str) | ||
| 614 | #define DECODE_SYSTEM(name) name | ||
| 615 | |||
| 616 | #endif /* !WINDOWSNT */ | ||
| 617 | |||
| 618 | #define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1) | 610 | #define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1) |
| 619 | 611 | ||
| 620 | /* Extern declarations. */ | 612 | /* Extern declarations. */ |