From: Lars Wirzenius Date: Tue, 5 Jun 2012 14:14:07 +0000 (+0100) Subject: Make errno obey locale X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f22bd1b6c2acfa5d23fa1821a0c9e895d085eb;p=moreutils Make errno obey locale --- 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)