comparison src/w32term.c @ 23639:516fc58a7b7b

(w32_enable_unicode_output): Rename from w32_no_unicode_output. (w32_use_unicode_for_codepage, syms_of_w32term): Use new name and new semantics.
author Geoff Voelker <voelker@cs.washington.edu>
date Wed, 04 Nov 1998 23:42:04 +0000
parents e6fb9ffee4f4
children 70999481c915
comparison
equal deleted inserted replaced
23638:e6fb9ffee4f4 23639:516fc58a7b7b
130 During an update, these are different from the cursor-box position. */ 130 During an update, these are different from the cursor-box position. */
131 131
132 static int curs_x; 132 static int curs_x;
133 static int curs_y; 133 static int curs_y;
134 134
135 /* Flag to disable Unicode output in case users wish to use programs 135 /* Flag to enable Unicode output in case users wish to use programs
136 like Twinbridge on '95 rather than installed system level support 136 like Twinbridge on '95 rather than installed system level support
137 for Far East languages. */ 137 for Far East languages. */
138 int w32_no_unicode_output; 138 int w32_enable_unicode_output;
139 139
140 DWORD dwWindowsThreadId = 0; 140 DWORD dwWindowsThreadId = 0;
141 HANDLE hWindowsThread = NULL; 141 HANDLE hWindowsThread = NULL;
142 DWORD dwMainThreadId = 0; 142 DWORD dwMainThreadId = 0;
143 HANDLE hMainThread = NULL; 143 HANDLE hMainThread = NULL;
556 556
557 BOOL 557 BOOL
558 w32_use_unicode_for_codepage (codepage) 558 w32_use_unicode_for_codepage (codepage)
559 { 559 {
560 /* If the current codepage is supported, use Unicode for output. */ 560 /* If the current codepage is supported, use Unicode for output. */
561 return (!w32_no_unicode_output 561 return (w32_enable_unicode_output
562 && codepage != CP_DEFAULT && IsValidCodePage (codepage)); 562 && codepage != CP_DEFAULT && IsValidCodePage (codepage));
563 } 563 }
564 564
565 /* Dealing with bits of wchar_t as if they were an XChar2B. */ 565 /* Dealing with bits of wchar_t as if they were an XChar2B. */
566 #define BUILD_WCHAR_T(byte1, byte2) \ 566 #define BUILD_WCHAR_T(byte1, byte2) \
5167 "Recognize right-alt and left-ctrl as AltGr.\n\ 5167 "Recognize right-alt and left-ctrl as AltGr.\n\
5168 When nil, the right-alt and left-ctrl key combination is\n\ 5168 When nil, the right-alt and left-ctrl key combination is\n\
5169 interpreted normally."); 5169 interpreted normally.");
5170 Vw32_recognize_altgr = Qt; 5170 Vw32_recognize_altgr = Qt;
5171 5171
5172 DEFVAR_BOOL ("w32-no-unicode-output", 5172 DEFVAR_BOOL ("w32-enable-unicode-output",
5173 &w32_no_unicode_output, 5173 &w32_enable_unicode_output,
5174 "Disable the use of Unicode for text output if non-nil.\n\ 5174 "Enable the use of Unicode for text output if non-nil.\n\
5175 Unicode output may prevent some third party applications for displaying\n\ 5175 Unicode output may prevent some third party applications for displaying\n\
5176 Far-East Languages on Windows 95/98 from working properly.\n\ 5176 Far-East Languages on Windows 95/98 from working properly.\n\
5177 NT uses Unicode internally anyway, so this flag will probably have no\n\ 5177 NT uses Unicode internally anyway, so this flag will probably have no\n\
5178 affect on NT machines."); 5178 affect on NT machines.");
5179 w32_no_unicode_output = 0; 5179 w32_enable_unicode_output = 1;
5180 } 5180 }