From 67f22bd1b6c2acfa5d23fa1821a0c9e895d085eb Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 5 Jun 2012 15:14:07 +0100 Subject: [PATCH] Make errno obey locale --- errno.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/errno.c b/errno.c index 64a4770..872d11a 100644 --- a/errno.c +++ b/errno.c @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -122,6 +123,8 @@ main(int argc, char **argv) int index = 0; enum { lookup_mode, list_mode, search_mode } mode = lookup_mode; + setlocale(LC_ALL, ""); + for (;;) { int c = getopt_long(argc, argv, "hls", options, &index); if (c == -1) -- 2.39.5