git: ddda2c59e6aa - main - japanese/today: Simplify line break conversion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jun 2026 20:06:25 UTC
The branch main has been updated by tijl:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ddda2c59e6aa72f86e9fa13ec9d8d4548f72b020
commit ddda2c59e6aa72f86e9fa13ec9d8d4548f72b020
Author: Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2026-06-10 19:00:00 +0000
Commit: Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2026-06-30 20:03:56 +0000
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
---
japanese/today/Makefile | 4 ++--
1 file 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: