--- configure 2023-01-02 22:40:04.000000000 +0000 +++ configure.codesets 2023-10-11 03:54:24.761918846 +0000 @@ -7755,16 +7755,17 @@ fi if test x$codesets = xall; then - codesets=jp,jp-ext,kr,zh,zh-ext + codesets=eu,vn,jp,jp-ext,kr,zh,zh-ext fi -printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h - - -printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h - for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do case "$codeset" in + EU ) +printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h + ;; + VN ) +printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h + ;; JP ) printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h ;; --- src/xdefaults.C-orig 2021-02-25 13:23:38.765173963 +0000 +++ src/xdefaults.C 2021-02-25 13:24:16.810591863 +0000 @@ -317,7 +317,13 @@ #if UNICODE_3 "unicode3," #endif - "encodings=eu+vn" + "encodings=" +#if ENCODING_EU + "+eu" +#endif +#if ENCODING_VN + "+vn" +#endif #if ENCODING_JP "+jp" #endif