Skip to content

Commit 4e8d95a

Browse files
committed
FIX: enable wide character support on Posix
resolves: Oldes/Rebol-issues#2557
1 parent 8d7a6fe commit 4e8d95a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/os/posix/dev-stdio.c

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include <signal.h>
4545
#include <stdlib.h>
4646
#include <string.h>
47+
#include <locale.h>
4748
#include <sys/ioctl.h>
4849

4950
#include "reb-host.h"
@@ -140,6 +141,8 @@ static void Close_StdIO_Local(void)
140141
return DR_DONE; // Do not do it again
141142
}
142143

144+
setlocale(LC_ALL, ""); // Enable wide character support
145+
143146
Init_Signals();
144147

145148
if (!GET_FLAG(req->modes, RDM_NULL)) {

0 commit comments

Comments
 (0)