Skip to content

Commit 679e1e9

Browse files
committed
win
1 parent 322b67e commit 679e1e9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/boxes.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,8 @@ static int build_design(design_t **adesigns, const char *cld)
106106
dp->tags = (char **) calloc(2, sizeof(char *));
107107
dp->tags[0] = "transient";
108108

109-
#if defined(__MINGW32__)
110-
char *clim = "UTF-16LE";
111-
#else
112-
char *clim = "UTF-8";
113-
#endif
114-
uint32_t *cld_u32 = u32_strconv_from_arg(cld, clim);
109+
/* We always use UTF-8, which is correct for Linux and MacOS, and for modern Windows configured for UTF-8. */
110+
uint32_t *cld_u32 = u32_strconv_from_arg(cld, "UTF-8");
115111
bxstr_t *cldW = bxs_from_unicode(cld_u32);
116112
BFREE(cld_u32);
117113

0 commit comments

Comments
 (0)