git: 42c8c7282881 - main - japanese/skk-*: Run awk with LC_ALL=C
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jun 2026 20:06:24 UTC
The branch main has been updated by tijl:
URL: https://cgit.FreeBSD.org/ports/commit/?id=42c8c728288121eddab5e0389ce25a95cba59669
commit 42c8c728288121eddab5e0389ce25a95cba59669
Author: Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2026-06-10 15:57:47 +0000
Commit: Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2026-06-30 20:03:56 +0000
japanese/skk-*: Run awk with LC_ALL=C
This is what the upstream Makefile does as well. It makes awk pass
through 8-bit characters instead of trying to interpret them as UTF-8
when the ports tree locale becomes C.UTF-8.
PR: 295945
Exp-run by: antoine
---
japanese/skk-jawiki/Makefile | 2 +-
japanese/skk-jisyo/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/japanese/skk-jawiki/Makefile b/japanese/skk-jawiki/Makefile
index 79eeb4c9c68e..97d97b96fb91 100644
--- a/japanese/skk-jawiki/Makefile
+++ b/japanese/skk-jawiki/Makefile
@@ -54,7 +54,7 @@ do-build:
>> ${WRKSRC}/${SKKDIC}
.endif
.for dic in ${DICS:M*.cdb}
- ${AWK} '/^[^;]/ { \
+ LC_ALL=C ${AWK} '/^[^;]/ { \
s = substr($$0, index($$0, " ") + 1); \
print "+" length($$1) "," length(s) ":" $$1 "->" s; \
} \
diff --git a/japanese/skk-jisyo/Makefile b/japanese/skk-jisyo/Makefile
index 3168b347b5d4..be8cb9ecd810 100644
--- a/japanese/skk-jisyo/Makefile
+++ b/japanese/skk-jisyo/Makefile
@@ -57,7 +57,7 @@ post-patch:
# See also: <URL:http://cr.yp.to/cdb/cdbmake.html>.
do-build:
.for type in ${SKK_JISYO_TYPE}
- ${AWK} '/^[^;]/ { \
+ LC_ALL=C ${AWK} '/^[^;]/ { \
s = substr($$0, index($$0, " ") + 1); \
print "+" length($$1) "," length(s) ":" $$1 "->" s; \
} \