]> git.eshelyaron.com Git - emacs.git/commitdiff
(Vw32_ansi_code_page): New Lisp variable.
authorJason Rumney <jasonr@gnu.org>
Sun, 9 May 2004 15:02:14 +0000 (15:02 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 9 May 2004 15:02:14 +0000 (15:02 +0000)
(globals_of_w32fns): Set it.

src/w32fns.c

index f9a81a199924cd79ca04159b884e839f98ef13f9..b57e31b6ed281a7c8a1644dea0b42ec8f5d81f98 100644 (file)
@@ -234,6 +234,9 @@ Lisp_Object Qw32_charset_mac;
 Lisp_Object Qw32_charset_unicode;
 #endif
 
+/* The ANSI codepage.  */
+Lisp_Object Vw32_ansi_code_page;
+
 /* Prefix for system colors.  */
 #define SYSTEM_COLOR_PREFIX "System"
 #define SYSTEM_COLOR_PREFIX_LEN (sizeof (SYSTEM_COLOR_PREFIX) - 1)
@@ -8793,6 +8796,11 @@ void globals_of_w32fns ()
   /* ditto for GetClipboardSequenceNumber.  */
   clipboard_sequence_fn = (ClipboardSequence_Proc)
     GetProcAddress (user32_lib, "GetClipboardSequenceNumber");
+
+  DEFVAR_INT ("w32-ansi-code-page",
+             &Vw32_ansi_code_page,
+             doc: /* The ANSI code page used by the system.  */);
+  XSETINT (Vw32_ansi_code_page, GetACP ());
 }
 
 #undef abort