PERFORCE change 145282 for review
Gabor Kovesdan
gabor at FreeBSD.org
Tue Jul 15 14:23:44 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=145282
Change 145282 by gabor at gabor_server on 2008/07/15 14:23:31
- Call setlocale() in main() for wchar support
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/diff/diff.c#12 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/diff/diff.c#12 (text+ko) ====
@@ -35,6 +35,7 @@
#include <err.h>
#include <errno.h>
#include <getopt.h>
+#include <locale.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
@@ -138,6 +139,8 @@
int ch, lastch, gotstdin, prevoptind, newarg, flags = 0;
char *dst, *src;
+ setlocale(LC_ALL, "");
+
oargv = argv;
gotstdin = 0;
More information about the p4-projects
mailing list