Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2008 14:23:43 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 145282 for review
Message-ID:  <200807151423.m6FENhfc053826@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=145282

Change 145282 by gabor@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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807151423.m6FENhfc053826>