Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
02f593f3
Commit
02f593f3
authored
Nov 10, 2000
by
Jason Rumney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(w32_encode_char): Handle CP_UNICODE specially.
(w32_use_unicode_for_codepage): Use new pseudo-codepages.
parent
15fa6efb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/w32term.c
src/w32term.c
+9
-7
No files found.
src/w32term.c
View file @
02f593f3
...
...
@@ -1411,10 +1411,13 @@ w32_encode_char (c, char2b, font_info, two_byte_p)
temp[0] = BYTE1 (*char2b);
temp[1] = BYTE2 (*char2b);
temp[2] = '\0';
if (temp[0])
MultiByteToWideChar (codepage, 0, temp, 2, char2b, 1);
else
MultiByteToWideChar (codepage, 0, temp+1, 1, char2b, 1);
if (codepage != CP_UNICODE)
{
if (temp[0])
MultiByteToWideChar (codepage, 0, temp, 2, char2b, 1);
else
MultiByteToWideChar (codepage, 0, temp+1, 1, char2b, 1);
}
unicode_p = 1;
*two_byte_p = 1;
}
...
...
@@ -2521,7 +2524,8 @@ w32_use_unicode_for_codepage (codepage)
{
/* If the current codepage is supported, use Unicode for output. */
return (w32_enable_unicode_output
&& codepage != CP_DEFAULT && IsValidCodePage (codepage));
&& codepage != CP_8BIT
&& (codepage == CP_UNICODE || IsValidCodePage (codepage)));
}
...
...
@@ -10199,8 +10203,6 @@ w32_initialize ()
void
syms_of_w32term ()
{
Lisp_Object codepage;
staticpro (&w32_display_name_list);
w32_display_name_list = Qnil;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment