Fixed diff, gettext code issues

master
Kazuo Kuroi 2 years ago
parent f21f57104f
commit 0ee9658450
  1. 3
      cmd/diff/diff.c
  2. 3
      cmd/gettext/gettext.c
  3. 2
      lib/libintl/src/Makefile

@ -113,6 +113,7 @@
#include <signal.h>
#include <fcntl.h>
#include <dirent.h>
#include <libintl.h>
#include <locale.h>
#include <stdarg.h>
#include <errno.h>
@ -814,7 +815,7 @@ change(int a, int b, int c, int d)
* %T -- Time as %H:%M:%S
* %Y -- Year, including the century
*/
dcmsg = (char *)dcgettext(NULL, "%a %b %e %T %Y", LC_TIME);
dcmsg = (char *)dgettext(NULL, "%a %b %e %T %Y");
(void) cftime(time_buf, dcmsg, &stb1.st_mtime);
if (uflag)
(void) printf("--- %s %s\n", input_file1,

@ -36,6 +36,7 @@
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <libintl.h>
#include <locale.h>
/*
@ -250,4 +251,4 @@ loop:
(void) fputc('\n', stdout);
return ((domain == NULL) || (*domain == '\0'));
}
}

@ -15,7 +15,7 @@ libintl.so: $(OBJS)
libintl.o: libintl.cpp
$(CC) $(CFLAGS) -c libintl.c
$(CC) $(CFLAGS) -c libintl.cpp
clean:
rm -rf *.o libintl.so

Loading…
Cancel
Save