diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 4f53d93d8b4..1fbf32760dd 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -48,6 +48,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 48 | 48 | ||
| 49 | #ifdef WINDOWSNT | 49 | #ifdef WINDOWSNT |
| 50 | #include <mbstring.h> | 50 | #include <mbstring.h> |
| 51 | #include <mbctype.h> /* for _getmbcp */ | ||
| 51 | #endif /* WINDOWSNT */ | 52 | #endif /* WINDOWSNT */ |
| 52 | 53 | ||
| 53 | #if CYGWIN | 54 | #if CYGWIN |
| @@ -10908,6 +10909,15 @@ globals_of_w32fns (void) | |||
| 10908 | doc: /* The ANSI code page used by the system. */); | 10909 | doc: /* The ANSI code page used by the system. */); |
| 10909 | w32_ansi_code_page = GetACP (); | 10910 | w32_ansi_code_page = GetACP (); |
| 10910 | 10911 | ||
| 10912 | #ifndef CYGWIN | ||
| 10913 | DEFVAR_INT ("w32-multibyte-code-page", | ||
| 10914 | w32_multibyte_code_page, | ||
| 10915 | doc: /* The current multibyte code page used by the system. | ||
| 10916 | A value of zero indicates that the single-byte code page is in use, | ||
| 10917 | see `w32-ansi-code-page'. */); | ||
| 10918 | w32_multibyte_code_page = _getmbcp (); | ||
| 10919 | #endif | ||
| 10920 | |||
| 10911 | if (os_subtype == OS_NT) | 10921 | if (os_subtype == OS_NT) |
| 10912 | w32_unicode_gui = 1; | 10922 | w32_unicode_gui = 1; |
| 10913 | else | 10923 | else |