if [ $(WEB) = 1 ] ; then cd html && $(MAKE) install ; fi
for i in $(COOKIES) ; do \
install -m 0644 $$i $$i.dat $(COOKIEDIR) || exit $? ; \
- cp -d $$i.u8 $(COOKIEDIR) ; \
+ cp -P $$i.u8 $(COOKIEDIR) ; \
done
clean:
install -m 0755 -d $(OCOOKIEDIR)
for i in $(OCOOKIES) ; \
do install -m 0644 rotated/$$i rotated/$$i.dat $(OCOOKIEDIR) || exit $$? ; \
- cp -d rotated/$$i.u8 $(OCOOKIEDIR) ; \
+ cp -P rotated/$$i.u8 $(OCOOKIEDIR) ; \
done
clean:
#endif /* killing warnings */
#define PROGRAM_NAME "fortune-mod"
-#define PROGRAM_VERSION "9708"
+#define PROGRAM_VERSION "1.99.4"
#include <stdbool.h>
setlocale(LC_ALL,"");
ctype = nl_langinfo(CODESET);
- if(strcmp(ctype,"ANSI_X3.4-1968") == 0)
+ if (!ctype || !*ctype)
+ {
+ ctype = "C";
+ }
+ else if(strcmp(ctype,"ANSI_X3.4-1968") == 0)
+ {
ctype="ISO-8859-1";
+ }
crequest = malloc(strlen(ctype) + 7 + 1);
sprintf(crequest, "UTF-8..%s", ctype);