summaryrefslogtreecommitdiff
path: root/src/wchar/wctob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/wctob.c')
-rw-r--r--src/wchar/wctob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wchar/wctob.c b/src/wchar/wctob.c
index 5608a672..14ccf18c 100644
--- a/src/wchar/wctob.c
+++ b/src/wchar/wctob.c
@@ -7,6 +7,8 @@
int wctob(wint_t c)
{
+ SIGNAL_SAFE(0);
+
char *l = setlocale(LC_CTYPE, NULL);
if (!strcmp(l, "C") || !strcmp(l, "POSIX")) {