diff options
author | ache <ache@FreeBSD.org> | 1995-10-23 20:26:53 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-23 20:26:53 +0000 |
commit | 6df301ad24a8bd8009e55499f683f7571f2c0c2e (patch) | |
tree | f53fb010cb9c84a3919cb707c28380f8d9bb3678 /bin/date | |
parent | e9ce2479b92f169b033c56ba81d8bbccf791e7f6 (diff) | |
download | FreeBSD-src-6df301ad24a8bd8009e55499f683f7571f2c0c2e.zip FreeBSD-src-6df301ad24a8bd8009e55499f683f7571f2c0c2e.tar.gz |
Add setlocale(LC_TIME,...
Diffstat (limited to 'bin/date')
-rw-r--r-- | bin/date/date.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/date/date.c b/bin/date/date.c index 94e3b33..c842ae9 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: date.c,v 1.4 1995/04/03 20:08:33 joerg Exp $ + * $Id: date.c,v 1.5 1995/08/05 23:08:17 ache Exp $ */ #ifndef lint @@ -54,6 +54,7 @@ static char sccsid[] = "@(#)date.c 8.1 (Berkeley) 5/31/93"; #include <string.h> #include <syslog.h> #include <unistd.h> +#include <locale.h> #include "extern.h" @@ -79,6 +80,7 @@ main(argc, argv) char *endptr; int set_timezone; + (void) setlocale(LC_TIME, ""); tz.tz_dsttime = tz.tz_minuteswest = 0; rflag = 0; set_timezone = 0; |