From 841b95221c1314b40002530267930870c5556d9e Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Wed, 11 Dec 2024 12:45:26 +0100 Subject: [PATCH] use locale --- errno/errno.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/errno/errno.c b/errno/errno.c index 4ccf09f..4e440bb 100644 --- a/errno/errno.c +++ b/errno/errno.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -10,6 +11,8 @@ char *cmnd; int main(int argc, char **argv) { int i; + setlocale(LC_ALL, ""); + cmnd = argv[0]; if (argc <= 1) {