Respect locale settings from the environment.
This commit is contained in:
parent
47aa50e155
commit
338b72d96e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132004
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user