Respect locale settings from the environment.

This commit is contained in:
Tim J. Robbins 2004-07-12 02:48:40 +00:00
parent 47aa50e155
commit 338b72d96e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132004

View File

@ -73,6 +73,7 @@ __FBSDID("$FreeBSD$");
#include <stddef.h>
#include <stdlib.h>
#include <err.h>
#include <locale.h>
#include "mdef.h"
#include "stdd.h"
#include "extern.h"
@ -182,6 +183,8 @@ main(int argc, char *argv[])
int rval;
char *p;
setlocale(LC_ALL, "");
traceout = stderr;
if (signal(SIGINT, SIG_IGN) != SIG_IGN)