aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2026-06-10 19:00:00 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2026-06-30 20:03:56 +0000
commitddda2c59e6aa72f86e9fa13ec9d8d4548f72b020 (patch)
tree6288dca55c8b24e2b7ff038b34d1a4535d538660
parent42c8c728288121eddab5e0389ce25a95cba59669 (diff)
japanese/today: Simplify line break conversion
nkf can do line break conversion, no need for tr. The data is eucJP encoded and tr treats it as UTF-8 when the ports tree locale becomes C.UTF-8. Submitted by: mce PR: 295945 Exp-run by: antoine
-rw-r--r--japanese/today/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/japanese/today/Makefile b/japanese/today/Makefile
index 55063b6cc8d5..b32fa19efc7f 100644
--- a/japanese/today/Makefile
+++ b/japanese/today/Makefile
@@ -17,6 +17,7 @@ NO_WRKSUBDIR= yes
USES= lha
MAKEFILE= ${FILESDIR}/Makefile
+CFLAGS+= -Wno-invalid-source-encoding
OPTIONS_DEFINE= DOCS
@@ -30,8 +31,7 @@ post-extract:
gengo.tbl hist??.tbl history.tbl holiday.tbl magazine.tbl \
monthly.tbl schedule.tbl suffix.tbl week.tbl; \
do \
- nkf -Se $$i | ${TR} -d '\015' > $$i.tmp ;\
- ${MV} -f $$i.tmp $$i ; \
+ nkf -Sed --overwrite $$i ; \
done)
post-patch: