aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorMiles Bader2005-03-19 02:42:17 +0000
committerMiles Bader2005-03-19 02:42:17 +0000
commit1bac4db5629da854a984a0e84a9469f14b6b9e76 (patch)
tree068627144f173fed8c3331d541debae6c36f8988 /src/coding.h
parentf603a66a19f5bfbba314daaa21e77665b3e03dd5 (diff)
parent951f97e67d904729032b476caf5f7c2e7e303d73 (diff)
downloademacs-1bac4db5629da854a984a0e84a9469f14b6b9e76.tar.gz
emacs-1bac4db5629da854a984a0e84a9469f14b6b9e76.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-28
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 180-191) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 39-44) - Merge from emacs--cvs-trunk--0 - Update from CVS
Diffstat (limited to 'src/coding.h')
-rw-r--r--src/coding.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/coding.h b/src/coding.h
index 2a44da5692d..c537ef8376c 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 Copyright (C) 2003 5 Copyright (C) 2003
@@ -600,9 +600,8 @@ struct coding_system
600 : name)) 600 : name))
601 601
602 602
603#ifdef WINDOWSNT
604/* Encode the string STR using the specified coding system 603/* Encode the string STR using the specified coding system
605 for w32 system functions, if any. */ 604 for system functions, if any. */
606#define ENCODE_SYSTEM(str) \ 605#define ENCODE_SYSTEM(str) \
607 (! NILP (Vlocale_coding_system) \ 606 (! NILP (Vlocale_coding_system) \
608 && !EQ (Vlocale_coding_system, make_number (0)) \ 607 && !EQ (Vlocale_coding_system, make_number (0)) \
@@ -610,20 +609,13 @@ struct coding_system
610 : str) 609 : str)
611 610
612/* Decode the string STR using the specified coding system 611/* Decode the string STR using the specified coding system
613 for w32 system functions, if any. */ 612 for system functions, if any. */
614#define DECODE_SYSTEM(name) \ 613#define DECODE_SYSTEM(name) \
615 (! NILP (Vlocale_coding_system) \ 614 (! NILP (Vlocale_coding_system) \
616 && !EQ (Vlocale_coding_system, make_number (0)) \ 615 && !EQ (Vlocale_coding_system, make_number (0)) \
617 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ 616 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \
618 : str) 617 : str)
619 618
620#else /* WINDOWSNT */
621
622#define ENCODE_SYSTEM(str) string_make_unibyte(str)
623#define DECODE_SYSTEM(name) name
624
625#endif /* !WINDOWSNT */
626
627/* Used by the gtk menu code. Note that this encodes utf-8, not 619/* Used by the gtk menu code. Note that this encodes utf-8, not
628 utf-8-emacs, so it's not a no-op. */ 620 utf-8-emacs, so it's not a no-op. */
629#define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1) 621#define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1)