aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32fns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32fns.c')
-rw-r--r--src/w32fns.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index dac83ab6ae1..06938e3124b 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4036,7 +4036,7 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms)
4036 4036
4037 for (i = 0; names[i]; i++) 4037 for (i = 0; names[i]; i++)
4038 { 4038 {
4039 font = font_open_by_name (f, names[i], strlen (names[i])); 4039 font = font_open_by_name (f, build_unibyte_string (names[i]));
4040 if (! NILP (font)) 4040 if (! NILP (font))
4041 break; 4041 break;
4042 } 4042 }
@@ -6197,8 +6197,7 @@ an integer representing a ShowWindow flag:
6197 if (!NILP (Vlocale_coding_system)) 6197 if (!NILP (Vlocale_coding_system))
6198 { 6198 {
6199 Lisp_Object decoded = 6199 Lisp_Object decoded =
6200 code_convert_string_norecord (make_unibyte_string (errstr, 6200 code_convert_string_norecord (build_unibyte_string (errstr),
6201 strlen (errstr)),
6202 Vlocale_coding_system, 0); 6201 Vlocale_coding_system, 0);
6203 errstr = SSDATA (decoded); 6202 errstr = SSDATA (decoded);
6204 } 6203 }