We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322b67e commit 679e1e9Copy full SHA for 679e1e9
src/boxes.c
@@ -106,12 +106,8 @@ static int build_design(design_t **adesigns, const char *cld)
106
dp->tags = (char **) calloc(2, sizeof(char *));
107
dp->tags[0] = "transient";
108
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);
+ /* We always use UTF-8, which is correct for Linux and MacOS, and for modern Windows configured for UTF-8. */
+ uint32_t *cld_u32 = u32_strconv_from_arg(cld, "UTF-8");
115
bxstr_t *cldW = bxs_from_unicode(cld_u32);
116
BFREE(cld_u32);
117
0 commit comments