diff options
| author | Tijl Coosemans <tijl@FreeBSD.org> | 2026-06-10 15:57:47 +0000 |
|---|---|---|
| committer | Tijl Coosemans <tijl@FreeBSD.org> | 2026-06-30 20:03:56 +0000 |
| commit | 42c8c728288121eddab5e0389ce25a95cba59669 (patch) | |
| tree | 99a6c3f3081d2471b42ea56511a7d683c9c45065 | |
| parent | 72b9da5ac99d1240e717857998556c4a2825d136 (diff) | |
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
| -rw-r--r-- | japanese/skk-jawiki/Makefile | 2 | ||||
| -rw-r--r-- | 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; \ } \ |
