Refactor hintsdb lockfile acquisition
[exim.git] / doc / doc-docbook / GenLocalParams
index 140890880cce318cbf1c06741ded8dbb85ff781f..fc8e7fc58bd9b623e0796e0b1ad31d75c2a987cf 100755 (executable)
@@ -5,8 +5,16 @@ output="${1:-local_params}"
 
 nicedate="$(date +"%d %b %Y")"
 
+if which locale >/dev/null; then
+    charset="$(locale | grep ^LC_CTYPE=)"
+else
+    charset=unknown
+fi
+
 exec > "$output"
 cat <<EOTEMPLATE
+. # if this file changes, the build process will rebuild everything
+. # locale's charset $charset
 .macro version
 ${EXIM_VER}
 .endmacro