annotate lisp/mule/mule-win32-init.el @ 2500:3d8143fc88e1

[xemacs-hg @ 2005-01-24 23:33:30 by ben] get working with VC7 config.inc.samp: Declare OPTIONAL_LIBRARY_DIR as root of library directories. Redo all graphics library defaults to mirror the versions and directories in the current binary aux distribution on xemacs web site. Enable TIFF and COMPFACE by default since you can now compile with them and binary libs are provided. xemacs.mak: Put our own directories first in case of conflict (e.g. config.h in compface). xemacs.mak: Use MSVCRT to avoid link problems. s/windowsnt.h: bytecode.c, print.c: Add casts to avoid warning. compiler.h: Add MSC_VERSION and include definitions of DOESNT_RETURN and friends here, like for GCC. Need different definitions for VC7 and VC6. s/windowsnt.h: Remove stuff moved to compiler.h. Disable warning 4646 ("function declared with __declspec(noreturn) has non-void return type") on VC7 since lots of Lisp primitives trigger this and there is no easy way to kludge around the warning. glyphs-eimage.c: Some really nasty hacks to allow TIFF and JPEG to both be compiled. #### The better solution is to move the TIFF and JPEG code to different files. glyphs-msw.c: Define __STDC__ to avoid problems with compface.h. intl-auto-encap-win32.c, intl-auto-encap-win32.h, intl-encap-win32.c, syswindows.h: Those wankers at Microsoft cannot leave well enough alone. Various functions change parameter types semi-randomly between VC6 and VC7, so we need to include our own versions that can handle both kinds with appropriate casting. EmacsFrame.c, EmacsShell-sub.c, EmacsShell.c, alloc.c, alloca.c, buffer.c, bytecode.c, charset.h, chartab.c, cm.c, console-stream.c, console.c, data.c, debug.h, device-msw.c, device-tty.c, device-x.c, doprnt.c, dumper.c, dynarr.c, elhash.c, emacs.c, eval.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, events.c, extents.c, faces.c, file-coding.c, fileio.c, fns.c, font-lock.c, frame-gtk.c, frame-x.c, frame.c, free-hook.c, gccache-gtk.c, glyphs-eimage.c, glyphs-gtk.c, glyphs-msw.c, glyphs-x.c, glyphs.c, gtk-glue.c, gutter.c, input-method-xlib.c, insdel.c, intl-win32.c, keymap.c, lisp.h, lread.c, lstream.c, macros.c, malloc.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, mule-coding.c, native-gtk-toolbar.c, number.c, objects-msw.c, objects.c, print.c, process-nt.c, process-unix.c, process.c, ralloc.c, rangetab.c, redisplay-gtk.c, redisplay-msw.c, redisplay-output.c, redisplay-tty.c, redisplay-x.c, redisplay.c, regex.c, scrollbar-gtk.c, scrollbar-x.c, search.c, select-x.c, signal.c, specifier.c, specifier.h, strftime.c, sunplay.c, symbols.c, sysdep.c, sysproc.h, text.c, text.h, toolbar-common.c, toolbar-msw.c, toolbar.c, ui-gtk.c, unexnt.c, unicode.c, win32.c, window.c, xgccache.c, s/windowsnt.h: abort() -> ABORT(). Eliminate preprocessor games with abort() since it creates huge problems in VC7, solvable only by including massive amounts of files in every compile (and not worth it).
author ben
date Mon, 24 Jan 2005 23:34:34 +0000
parents 70921960b980
children edb00a8b4eff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
1 ;;; mule-win32-init.el --- initialization code for MS Windows/Cygwin under MULE
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
2 ;;; Copyright (C) 2001, 2002 Ben Wing.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
3
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
4 ;; This file is part of XEmacs.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
5
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
6 ;; XEmacs is free software; you can redistribute it and/or modify it
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
7 ;; under the terms of the GNU General Public License as published by
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
8 ;; the Free Software Foundation; either version 2, or (at your option)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
9 ;; any later version.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
10
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
11 ;; XEmacs is distributed in the hope that it will be useful, but
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
12 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
14 ;; General Public License for more details.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
15
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
16 ;; You should have received a copy of the GNU General Public License
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
17 ;; along with XEmacs; see the file COPYING. If not, write to the
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
18 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
19 ;; Boston, MA 02111-1307, USA.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
20
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
21 (make-coding-system
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
22 'mswindows-multibyte 'mswindows-multibyte
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
23 "MS Windows Multibyte (current code page)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
24 '(mnemonic "MSW-MB"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
25 documentation
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
26 "MS Windows multibyte -- current code page.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
27
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
28 This implements the encoding specified by the current code page --
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
29 i.e. the ANSI code page corresponding to the current locale, as
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
30 returned by
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
31
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
32 (mswindows-locale-code-page (mswindows-current-locale))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
33 "
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
34 locale current
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
35 code-page ansi))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
36
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
37 ;; we temporarily aliased this to raw-text in intl-win32.c.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
38 (define-coding-system-alias 'mswindows-multibyte-system-default nil)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
39 (make-coding-system
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
40 'mswindows-multibyte-system-default 'mswindows-multibyte
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
41 "MS Windows Multibyte (system default code page)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
42 '(mnemonic "MSW-MB-SysDef"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
43 documentation
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
44 "MS Windows multibyte -- system default code page.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
45
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
46 This implements the encoding specified by the system default code page
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
47 -- i.e. the ANSI code page corresponding to the system default locale,
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
48 as returned by
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
49
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
50 (mswindows-locale-code-page (mswindows-system-default-locale))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
51 "
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
52 locale system-default
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
53 code-page ansi))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
54
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
55 (make-coding-system
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
56 'mswindows-multibyte-user-default 'mswindows-multibyte
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
57 "MS Windows Multibyte (user default code page)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
58 '(mnemonic "MSW-MB-UserDef"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
59 documentation
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
60 "MS Windows multibyte -- user default code page.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
61
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
62 This implements the encoding specified by the user default code page
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
63 -- i.e. the ANSI code page corresponding to the user default locale,
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
64 as returned by
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
65
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
66 (mswindows-locale-code-page (mswindows-user-default-locale))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
67 "
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
68 locale user-default
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
69 code-page ansi))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
70
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
71 (make-coding-system
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
72 'mswindows-multibyte-oem 'mswindows-multibyte
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
73 "MS Windows Multibyte (current OEM code page)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
74 '(mnemonic "MSW-MB-OEM"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
75 documentation
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
76 "MS Windows multibyte -- current OEM code page.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
77
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
78 This implements the encoding specified by the current OEM code page
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
79 -- i.e. the OEM code page corresponding to the current locale,
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
80 as returned by
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
81
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
82 (mswindows-locale-oem-code-page (mswindows-current-locale))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
83 "
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
84 locale current
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
85 code-page oem))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
86
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
87 (make-coding-system
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
88 'mswindows-multibyte-oem-system-default 'mswindows-multibyte
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
89 "MS Windows Multibyte (system default OEM code page)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
90 '(mnemonic "MSW-MB-OEM-SysDef"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
91 documentation
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
92 "MS Windows multibyte -- system default OEM code page.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
93
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
94 This implements the encoding specified by the system default OEM code page
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
95 -- i.e. the OEM code page corresponding to the system default locale,
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
96 as returned by
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
97
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
98 (mswindows-locale-oem-code-page (mswindows-system-default-locale))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
99 "
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
100 locale system-default
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
101 code-page oem))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
102
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
103 (make-coding-system
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
104 'mswindows-multibyte-oem-user-default 'mswindows-multibyte
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
105 "MS Windows Multibyte (user default OEM code page)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
106 '(mnemonic "MSW-MB-OEM-UserDef"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
107 documentation
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
108 "MS Windows multibyte -- user default OEM code page.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
109
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
110 This implements the encoding specified by the user default OEM code page
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
111 -- i.e. the OEM code page corresponding to the user default locale,
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
112 as returned by
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
113
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
114 (mswindows-locale-oem-code-page (mswindows-user-default-locale))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
115 "
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
116 locale user-default
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
117 code-page oem))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
118
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
119 (let ((cplist
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
120 '(("EBCDIC" 037 "EBCDIC")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
121 ("OEM" 437 "MS-DOS United States")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
122 ("EBCDIC" 500 "EBCDIC \"500V1\"")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
123 ("OEM" 708 "Arabic (ASMO 708)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
124 ("OEM" 709 "Arabic (ASMO 449+, BCON V4)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
125 ("OEM" 710 "Arabic (Transparent Arabic)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
126 ("OEM" 720 "Arabic (Transparent ASMO)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
127 ("OEM" 737 "Greek (formerly 437G)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
128 ("OEM" 775 "Baltic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
129 ("OEM" 850 "MS-DOS Multilingual (Latin I)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
130 ("OEM" 852 "MS-DOS Slavic (Latin II)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
131 ("OEM" 855 "IBM Cyrillic (primarily Russian)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
132 ("OEM" 857 "IBM Turkish")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
133 ("OEM" 860 "MS-DOS Portuguese")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
134 ("OEM" 861 "MS-DOS Icelandic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
135 ("OEM" 862 "Hebrew")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
136 ("OEM" 863 "MS-DOS Canadian-French")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
137 ("OEM" 864 "Arabic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
138 ("OEM" 865 "MS-DOS Nordic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
139 ("OEM" 866 "MS-DOS Russian")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
140 ("OEM" 869 "IBM Modern Greek")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
141 ("Ansi/OEM" 874 "Thai")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
142 ("EBCDIC" 875 "EBCDIC")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
143 ("Ansi/OEM" 932 "Japanese")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
144 ("Ansi/OEM" 936 "Chinese (PRC, Singapore)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
145 ("Ansi/OEM" 949 "Korean")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
146 ("Ansi/OEM" 950 "Chinese (Taiwan; Hong Kong SAR, PRC)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
147 ("EBCDIC" 1026 "EBCDIC")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
148 ("ANSI" 1200 "Unicode (BMP of ISO 10646)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
149 ("ANSI" 1250 "Windows 3.1 Eastern European")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
150 ("ANSI" 1251 "Windows 3.1 Cyrillic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
151 ("ANSI" 1252 "Windows 3.1 US (ANSI)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
152 ("ANSI" 1253 "Windows 3.1 Greek")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
153 ("ANSI" 1254 "Windows 3.1 Turkish")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
154 ("ANSI" 1255 "Hebrew")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
155 ("ANSI" 1256 "Arabic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
156 ("ANSI" 1257 "Baltic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
157 ("ANSI" 1258 "VietNam")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
158 ("Ansi/OEM" 1361 "Korean (Johab)")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
159 ("Mac" 10000 "Macintosh Roman")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
160 ("Mac" 10001 "Macintosh Japanese")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
161 ("Mac" 10006 "Macintosh Greek I")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
162 ("Mac" 10007 "Macintosh Cyrillic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
163 ("Mac" 10029 "Macintosh Latin 2")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
164 ("Mac" 10079 "Macintosh Icelandic")
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
165 ("Mac" 10081 "Macintosh Turkish"))))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
166 (dolist (cpprops cplist)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
167 (let ((ansioem (first cpprops))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
168 (cp (second cpprops))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
169 (name (third cpprops)))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
170 (make-coding-system
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
171 (intern (format "windows-%s" cp))
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
172 'mswindows-multibyte
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
173 (format "MS Windows code page %s (%s, %s)" cp ansioem name)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
174 `(mnemonic
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
175 ,(format "MSW-%s" cp)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
176 code-page ,cp
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
177 documentation
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
178 ,(format
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
179 "MS Windows Multibyte -- code page %s (%s, %s).
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
180
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
181 This implements the encoding specified by code page %s.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
182 For more information on code pages, see `mswindows-charset-code-page'."
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents:
diff changeset
183 cp ansioem name cp))))))