From bcdcbd58f9b721658cdc1dfd25e7b3f13ad4d48e Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Thu, 13 Mar 2025 18:56:27 -0700 Subject: [PATCH] set C locale In all bin shell scripts, set `LC_ALL`, `LANG`, and `LC_NUMERIC` to "C". Changed all bin shell script VERSION to "2.0.0 2025-03-13". Tested the above via `make www` on macOS. Only the sitemap was updated. --- bin/all-jfmt.sh | 12 ++++- bin/all-run.sh | 12 ++++- bin/all-years.sh | 12 ++++- bin/chk-entry.sh | 12 ++++- bin/combine_author_handle.sh | 12 ++++- bin/csv2entry.sh | 20 ++++++++- bin/cvt-submission.sh | 14 +++++- bin/entry2csv.sh | 20 ++++++++- bin/find-invalid-json.sh | 13 +++++- bin/find-missing-links.sh | 13 +++++- bin/format-headers.sh | 7 +++ bin/gen-authors.sh | 12 ++++- bin/gen-location.sh | 13 +++++- bin/gen-other-html.sh | 12 ++++- bin/gen-sitemap.sh | 12 ++++- bin/gen-status.sh | 12 ++++- bin/gen-top-html.sh | 12 ++++- bin/gen-year-index.sh | 12 ++++- bin/gen-years.sh | 12 ++++- bin/jfmt-wrapper.sh | 12 ++++- bin/jprint-wrapper.sh | 12 ++++- bin/jval-wrapper.sh | 12 ++++- bin/md2html.sh | 12 ++++- bin/new-dir.sh | 12 ++++- bin/new-year.sh | 12 ++++- bin/othermd2html.sh | 12 ++++- bin/output-index-author.sh | 12 ++++- bin/output-index-inventory.sh | 18 ++++++-- bin/output-year-index.sh | 12 ++++- bin/pandoc-wrapper.sh | 14 +++++- bin/quick-readme2index.sh | 12 ++++- bin/readme2index.sh | 12 ++++- bin/sgi.sh | 9 +++- bin/sort.gitignore.sh | 12 ++++- bin/status2html.sh | 12 ++++- bin/subst.default.sh | 12 ++++- bin/subst.entry-index.sh | 12 ++++- bin/subst.year-index.sh | 12 ++++- bin/tar-entry.sh | 12 ++++- bin/tar-year.sh | 12 ++++- bin/untar-entry.sh | 12 ++++- bin/untar-year.sh | 13 +++++- sitemap.xml | 84 +++++++++++++++++------------------ 43 files changed, 521 insertions(+), 89 deletions(-) diff --git a/bin/all-jfmt.sh b/bin/all-jfmt.sh index 9c30e887b..d2b07abc4 100755 --- a/bin/all-jfmt.sh +++ b/bin/all-jfmt.sh @@ -84,9 +84,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.1 2024-09-24" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -324,6 +331,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/all-run.sh b/bin/all-run.sh index edba4d5c5..7732b8856 100755 --- a/bin/all-run.sh +++ b/bin/all-run.sh @@ -113,9 +113,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.4 2024-08-17" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -439,6 +446,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/all-years.sh b/bin/all-years.sh index c99918f89..0d5019190 100755 --- a/bin/all-years.sh +++ b/bin/all-years.sh @@ -112,9 +112,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.1 2024-08-17" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -432,6 +439,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/chk-entry.sh b/bin/chk-entry.sh index 823fc39d6..e2fe9a69b 100755 --- a/bin/chk-entry.sh +++ b/bin/chk-entry.sh @@ -94,9 +94,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.1.10 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -368,6 +375,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/combine_author_handle.sh b/bin/combine_author_handle.sh index d19391e3f..08d494e90 100755 --- a/bin/combine_author_handle.sh +++ b/bin/combine_author_handle.sh @@ -116,9 +116,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.0 2024-09-23" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -320,6 +327,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/csv2entry.sh b/bin/csv2entry.sh index de4b0fca5..0983cadf7 100755 --- a/bin/csv2entry.sh +++ b/bin/csv2entry.sh @@ -138,12 +138,25 @@ shopt -u dotglob # disable matching files starting with . shopt -u nocaseglob # disable strict case matching shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories -shopt -s lastpipe # explicitly run the last command of the pipe line in the current shell + + +# other required bash options +# +# Requires bash with a version 4.2 or later +# +shopt -s lastpipe # run last command of a pipeline not executed in the background in the current shell environment + + +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" # set variables referenced in the usage message # -export VERSION="1.5 2024-10-08" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -536,6 +549,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/cvt-submission.sh b/bin/cvt-submission.sh index 7a4587d01..c87e4b163 100755 --- a/bin/cvt-submission.sh +++ b/bin/cvt-submission.sh @@ -104,9 +104,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3.3 2025-02-26" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -163,7 +170,7 @@ if [[ -z "$CHKENTRY_TOOL" ]]; then exit 5 fi export MIN_CHKENTRY_VERSION="1.1.5" -CHKENTRY_VERSION=$("$CHKENTRY" -V | head -1 | awk '{print $3;}') +CHKENTRY_VERSION=$("$CHKENTRY_TOOL" -V | head -1 | awk '{print $3;}') if ! "$VERGE" "$CHKENTRY_VERSION" "$MIN_CHKENTRY_VERSION"; then echo "$0: FATAL: chkentry version: $CHKENTRY_VERSION < minimum version: $MIN_CHKENTRY_VERSION" 1>&2 echo "$0: notice: consider updating chkentry from mkiocccentry repo" 1>&2 @@ -1062,6 +1069,9 @@ export TARBALL="$TARBALL_DIR/$ENTRY_ID.mods.$NOW.tar.bz2" # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/entry2csv.sh b/bin/entry2csv.sh index 55129c067..9fd3ab459 100755 --- a/bin/entry2csv.sh +++ b/bin/entry2csv.sh @@ -113,12 +113,25 @@ shopt -u dotglob # disable matching files starting with . shopt -u nocaseglob # disable strict case matching shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories -shopt -s lastpipe # explicitly run the last command of the pipe line in the current shell + + +# other required bash options +# +# Requires bash with a version 4.2 or later +# +shopt -s lastpipe # run last command of a pipeline not executed in the background in the current shell environment + + +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" # set variables referenced in the usage message # -export VERSION="1.6.1 2024-11-16" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -654,6 +667,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/find-invalid-json.sh b/bin/find-invalid-json.sh index 4cbea9841..a7dd02095 100755 --- a/bin/find-invalid-json.sh +++ b/bin/find-invalid-json.sh @@ -17,6 +17,14 @@ # "Share and Enjoy!" # -- Sirius Cybernetics Corporation Complaints Division, JSON spec department. :-) + +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + VERGE=$(type -P verge) export VERGE if [[ -z $VERGE ]]; then @@ -50,7 +58,7 @@ fi # set variables referenced in the usage message # -export VERSION="1.0.0 2024-10-14" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -147,6 +155,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/find-missing-links.sh b/bin/find-missing-links.sh index d5c351007..de0cf3910 100755 --- a/bin/find-missing-links.sh +++ b/bin/find-missing-links.sh @@ -102,9 +102,17 @@ shopt -u nocaseglob # disable strict case matching shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories + +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.1.1 2024-04-28" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -265,6 +273,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/format-headers.sh b/bin/format-headers.sh index 69a7e5653..f570e6ee5 100755 --- a/bin/format-headers.sh +++ b/bin/format-headers.sh @@ -24,6 +24,13 @@ # Share and enjoy! :-) +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # modify well known markdown headers that are not in canonical form # for i in $(git ls-files '[0-9][0-9][0-9][0-9]/*README.md'); do diff --git a/bin/gen-authors.sh b/bin/gen-authors.sh index eb1df4def..a5db96ef0 100755 --- a/bin/gen-authors.sh +++ b/bin/gen-authors.sh @@ -96,9 +96,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.14.2 2024-11-16" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -550,6 +557,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/gen-location.sh b/bin/gen-location.sh index 73125b339..376475999 100755 --- a/bin/gen-location.sh +++ b/bin/gen-location.sh @@ -83,9 +83,17 @@ shopt -u nocaseglob # disable strict case matching shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories + +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.8.2 2024-11-16" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -435,6 +443,9 @@ export LOCATION_HTML="location.html" # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/gen-other-html.sh b/bin/gen-other-html.sh index ca7769599..3696d6311 100755 --- a/bin/gen-other-html.sh +++ b/bin/gen-other-html.sh @@ -84,9 +84,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.5 2024-08-27" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -356,6 +363,9 @@ TOOL_OPTION+=("$SITE_URL") # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/gen-sitemap.sh b/bin/gen-sitemap.sh index 9428f43a8..0be799e47 100755 --- a/bin/gen-sitemap.sh +++ b/bin/gen-sitemap.sh @@ -96,9 +96,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3.16 2025-01-09" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -501,6 +508,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/gen-status.sh b/bin/gen-status.sh index 23cf0d749..a32fcbe14 100755 --- a/bin/gen-status.sh +++ b/bin/gen-status.sh @@ -84,9 +84,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.8 2024-11-23" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -784,6 +791,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/gen-top-html.sh b/bin/gen-top-html.sh index c849b7edc..066b4e6fd 100755 --- a/bin/gen-top-html.sh +++ b/bin/gen-top-html.sh @@ -104,9 +104,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.4.11 2025-01-09" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -453,6 +460,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/gen-year-index.sh b/bin/gen-year-index.sh index 376568f06..fa233800c 100755 --- a/bin/gen-year-index.sh +++ b/bin/gen-year-index.sh @@ -86,9 +86,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.2 2024-08-17" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -415,6 +422,9 @@ TOOL_OPTION+=("$TAGLINE") # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/gen-years.sh b/bin/gen-years.sh index 788736513..d954b4547 100755 --- a/bin/gen-years.sh +++ b/bin/gen-years.sh @@ -86,9 +86,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.6.2 2024-11-16" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -593,6 +600,9 @@ export YEARS_HTML="years.html" # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/jfmt-wrapper.sh b/bin/jfmt-wrapper.sh index 72647bfbf..c3a60c7ff 100755 --- a/bin/jfmt-wrapper.sh +++ b/bin/jfmt-wrapper.sh @@ -108,9 +108,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3 2024-10-08" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -408,6 +415,9 @@ esac # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/jprint-wrapper.sh b/bin/jprint-wrapper.sh index d13edc6f7..79f3b91e5 100755 --- a/bin/jprint-wrapper.sh +++ b/bin/jprint-wrapper.sh @@ -108,9 +108,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.4 2024-10-08" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -409,6 +416,9 @@ esac # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/jval-wrapper.sh b/bin/jval-wrapper.sh index 7be319ee9..239f965b1 100755 --- a/bin/jval-wrapper.sh +++ b/bin/jval-wrapper.sh @@ -92,9 +92,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.2 2024-10-08" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -414,6 +421,9 @@ esac # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/md2html.sh b/bin/md2html.sh index b36fdcc16..f396298a7 100755 --- a/bin/md2html.sh +++ b/bin/md2html.sh @@ -156,9 +156,16 @@ shopt -s globstar # enable ** to match all files and zero or more directories an shopt -s lastpipe # run last command of a pipeline not executed in the background in the current shell environment +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.8 2024-11-07" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -699,6 +706,9 @@ function debug_parameters # print values that could be modified by parse_command_line # + echo "$0: debug[$DEBUG_LEVEL]: $DBG_PREFIX: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[$DEBUG_LEVEL]: $DBG_PREFIX: LANG=$LANG" 1>&2 + echo "$0: debug[$DEBUG_LEVEL]: $DBG_PREFIX: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[$DEBUG_LEVEL]: $DBG_PREFIX: VERSION=$VERSION" 1>&2 echo "$0: debug[$DEBUG_LEVEL]: $DBG_PREFIX: NAME=$NAME" 1>&2 echo "$0: debug[$DEBUG_LEVEL]: $DBG_PREFIX: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/new-dir.sh b/bin/new-dir.sh index 8e80e4970..271a7066b 100755 --- a/bin/new-dir.sh +++ b/bin/new-dir.sh @@ -87,9 +87,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3.2 2024-08-17" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -334,6 +341,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/new-year.sh b/bin/new-year.sh index da8010199..fb8974cfc 100755 --- a/bin/new-year.sh +++ b/bin/new-year.sh @@ -86,9 +86,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3.2 2024-07-28" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -384,6 +391,9 @@ fi # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/othermd2html.sh b/bin/othermd2html.sh index b910d7dbf..607580dd9 100755 --- a/bin/othermd2html.sh +++ b/bin/othermd2html.sh @@ -87,9 +87,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.0 2024-08-27" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -503,6 +510,9 @@ export UP_TEXT="UP_TEXT=jump to $YYYY_DIR/index.html" # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/output-index-author.sh b/bin/output-index-author.sh index 8e9a4696b..7c8f6c1c0 100755 --- a/bin/output-index-author.sh +++ b/bin/output-index-author.sh @@ -102,9 +102,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.10.2 2024-11-16" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -685,6 +692,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/output-index-inventory.sh b/bin/output-index-inventory.sh index cb3888655..d73f0f639 100755 --- a/bin/output-index-inventory.sh +++ b/bin/output-index-inventory.sh @@ -106,17 +106,24 @@ fi # We must declare arrays with -ag or -Ag, and we need loops to "export" modified variables. # This requires a bash with a version 4.2 or later. See the larger comment above about bash versions. # -shopt -s nullglob # enable expand to nothing rather than remaining unexpanded +shopt -s nullglob # enable expanded to nothing rather than remaining unexpanded shopt -u failglob # disable error message if no matches are found -shopt -u dotglob # disable matching files starting with '.' +shopt -u dotglob # disable matching files starting with . shopt -u nocaseglob # disable strict case matching shopt -u extglob # enable extended globbing patterns -shopt -s globstar # enable '**' to match all files and zero or more directories and subdirectories +shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories + + +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" # set variables referenced in the usage message # -export VERSION="1.4.4 2024-11-04" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -462,6 +469,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/output-year-index.sh b/bin/output-year-index.sh index 6862193a7..6fecc0149 100755 --- a/bin/output-year-index.sh +++ b/bin/output-year-index.sh @@ -121,9 +121,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.6.2 2024-11-16" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -580,6 +587,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/pandoc-wrapper.sh b/bin/pandoc-wrapper.sh index adf2d8c77..3716fcdab 100755 --- a/bin/pandoc-wrapper.sh +++ b/bin/pandoc-wrapper.sh @@ -100,9 +100,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.7.2 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -283,6 +290,8 @@ export PANDOC_TOOL_VERSION # It may be possible that versions > 2.14.0.3 and < 3.1.12.2 might work. # We tested pandoc version 3.1.12.2 and therefore set this as the minimum allowed. # +# As of 2025-03-13, pandoc version is 3.6.3, so versions > 3.1.12.2 and < 3.6.3 might work too. +# export PANDOC_MIN_VERSION="3.1.12.2" @@ -354,6 +363,9 @@ export INC_DIR="inc" # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/quick-readme2index.sh b/bin/quick-readme2index.sh index 5af582ddb..1d2d0e152 100755 --- a/bin/quick-readme2index.sh +++ b/bin/quick-readme2index.sh @@ -93,9 +93,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.2 2024-08-17" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -520,6 +527,9 @@ TOOL_OPTION+=("$SITE_URL/$YYYY_DIR/index.html") # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/readme2index.sh b/bin/readme2index.sh index 608d1408c..fbbc20ad4 100755 --- a/bin/readme2index.sh +++ b/bin/readme2index.sh @@ -87,9 +87,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3 2024-08-17" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -480,6 +487,9 @@ TOOL_OPTION+=("$SITE_URL/$YYYY_DIR/index.html") # If -v 3 or higher, print exported variables in order that they were exported. # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/sgi.sh b/bin/sgi.sh index 9c4285833..b258207a3 100755 --- a/bin/sgi.sh +++ b/bin/sgi.sh @@ -52,9 +52,16 @@ # Share and enjoy! :-) +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # load stdin into a temporary gitignore file # -export VERSION="1.2 2024-09-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export TMP_GITIGNORE=".tmp.$NAME.GITIGNORE.$$.tmp" diff --git a/bin/sort.gitignore.sh b/bin/sort.gitignore.sh index dcc075009..c5fb2f081 100755 --- a/bin/sort.gitignore.sh +++ b/bin/sort.gitignore.sh @@ -99,9 +99,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.2 2024-09-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -380,6 +387,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/status2html.sh b/bin/status2html.sh index dac9101a9..4fb1f1501 100755 --- a/bin/status2html.sh +++ b/bin/status2html.sh @@ -112,9 +112,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.4.5 2024-12-31" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -350,6 +357,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/subst.default.sh b/bin/subst.default.sh index 5ea103fab..02e906f69 100755 --- a/bin/subst.default.sh +++ b/bin/subst.default.sh @@ -93,9 +93,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3.2 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -239,6 +246,9 @@ export VALIDATOR_ENCODED_URL # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/subst.entry-index.sh b/bin/subst.entry-index.sh index ea4848f98..a152a6248 100755 --- a/bin/subst.entry-index.sh +++ b/bin/subst.entry-index.sh @@ -116,9 +116,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.8.1 2024-10-10" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -622,6 +629,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/subst.year-index.sh b/bin/subst.year-index.sh index 750d15431..0d9f09bc9 100755 --- a/bin/subst.year-index.sh +++ b/bin/subst.year-index.sh @@ -104,9 +104,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.1.5 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -465,6 +472,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/tar-entry.sh b/bin/tar-entry.sh index 004b7e9d1..c4d68dd11 100755 --- a/bin/tar-entry.sh +++ b/bin/tar-entry.sh @@ -84,9 +84,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.3.10 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -443,6 +450,9 @@ export REBUILD_TARBALL= # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/tar-year.sh b/bin/tar-year.sh index a84db7bda..88d22ee2f 100755 --- a/bin/tar-year.sh +++ b/bin/tar-year.sh @@ -84,9 +84,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message -export VERSION="1.2.8 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -391,6 +398,9 @@ export REBUILD_TARBALL= # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/untar-entry.sh b/bin/untar-entry.sh index 9418ff61a..34d93f363 100755 --- a/bin/untar-entry.sh +++ b/bin/untar-entry.sh @@ -84,9 +84,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.0.4 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -342,6 +349,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/bin/untar-year.sh b/bin/untar-year.sh index ccaf3c114..280b3896a 100755 --- a/bin/untar-year.sh +++ b/bin/untar-year.sh @@ -70,6 +70,7 @@ if [[ -z ${BASH_VERSINFO[0]} || exit 4 fi + # setup bash file matching # # We must declare arrays with -ag or -Ag, and we need loops to "export" modified variables. @@ -83,9 +84,16 @@ shopt -u extglob # enable extended globbing patterns shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories +# IOCCC requires use of C locale +# +export LC_ALL="C" +export LANG="C" +export LC_NUMERIC="C" + + # set variables referenced in the usage message # -export VERSION="1.0.4 2024-08-05" +export VERSION="2.0.0 2025-03-13" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -328,6 +336,9 @@ fi # parameter debugging # if [[ $V_FLAG -ge 3 ]]; then + echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2 + echo "$0: debug[3]: LANG=$LANG" 1>&2 + echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2 echo "$0: debug[3]: VERSION=$VERSION" 1>&2 echo "$0: debug[3]: NAME=$NAME" 1>&2 echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2 diff --git a/sitemap.xml b/sitemap.xml index 4374d27bb..263783ad2 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -15186,35 +15186,35 @@ https://www.ioccc.org/bin/all-jfmt.sh - 2025-02-15T01:57:55+00:00 + 2025-03-13T22:00:35+00:00 https://www.ioccc.org/bin/all-run.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:28+00:00 https://www.ioccc.org/bin/all-years.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:31+00:00 https://www.ioccc.org/bin/chk-entry.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:33+00:00 https://www.ioccc.org/bin/combine_author_handle.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:36+00:00 https://www.ioccc.org/bin/csv2entry.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:39+00:00 https://www.ioccc.org/bin/cvt-submission.sh - 2025-02-27T19:56:03+00:00 + 2025-03-13T22:08:43+00:00 https://www.ioccc.org/bin/entry2csv.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:45+00:00 https://www.ioccc.org/bin/filelist.entry.json.awk @@ -15222,47 +15222,47 @@ https://www.ioccc.org/bin/find-invalid-json.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:49+00:00 https://www.ioccc.org/bin/find-missing-links.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:52+00:00 https://www.ioccc.org/bin/format-headers.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T21:47:56+00:00 https://www.ioccc.org/bin/gen-authors.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:08:57+00:00 https://www.ioccc.org/bin/gen-location.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:00+00:00 https://www.ioccc.org/bin/gen-other-html.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:02+00:00 https://www.ioccc.org/bin/gen-sitemap.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:05+00:00 https://www.ioccc.org/bin/gen-status.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:07+00:00 https://www.ioccc.org/bin/gen-top-html.sh - 2025-03-04T18:04:48+00:00 + 2025-03-13T22:09:10+00:00 https://www.ioccc.org/bin/gen-year-index.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:12+00:00 https://www.ioccc.org/bin/gen-years.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:17+00:00 https://www.ioccc.org/bin/html.sed @@ -15274,15 +15274,15 @@ https://www.ioccc.org/bin/jfmt-wrapper.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:20+00:00 https://www.ioccc.org/bin/jprint-wrapper.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:22+00:00 https://www.ioccc.org/bin/jval-wrapper.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:24+00:00 https://www.ioccc.org/bin/manifest.csv.entry.awk @@ -15298,43 +15298,43 @@ https://www.ioccc.org/bin/md2html.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:09:57+00:00 https://www.ioccc.org/bin/new-dir.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:06+00:00 https://www.ioccc.org/bin/new-year.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:09+00:00 https://www.ioccc.org/bin/othermd2html.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:12+00:00 https://www.ioccc.org/bin/output-index-author.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:15+00:00 https://www.ioccc.org/bin/output-index-inventory.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:18+00:00 https://www.ioccc.org/bin/output-year-index.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:20+00:00 https://www.ioccc.org/bin/pandoc-wrapper.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:25+00:00 https://www.ioccc.org/bin/quick-readme2index.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:29+00:00 https://www.ioccc.org/bin/readme2index.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:31+00:00 https://www.ioccc.org/bin/README.md @@ -15342,23 +15342,23 @@ https://www.ioccc.org/bin/sgi.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:02:07+00:00 https://www.ioccc.org/bin/sort.gitignore.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:37+00:00 https://www.ioccc.org/bin/status2html.sh - 2025-01-10T06:38:21+00:00 + 2025-03-13T22:10:39+00:00 https://www.ioccc.org/bin/subst.default.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:42+00:00 https://www.ioccc.org/bin/subst.entry-index.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:44+00:00 https://www.ioccc.org/bin/subst.entry-navbar.awk @@ -15366,7 +15366,7 @@ https://www.ioccc.org/bin/subst.year-index.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:47+00:00 https://www.ioccc.org/bin/subst.year-navbar.awk @@ -15374,19 +15374,19 @@ https://www.ioccc.org/bin/tar-entry.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:49+00:00 https://www.ioccc.org/bin/tar-year.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:51+00:00 https://www.ioccc.org/bin/untar-entry.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:10:57+00:00 https://www.ioccc.org/bin/untar-year.sh - 2025-01-10T06:06:40+00:00 + 2025-03-13T22:11:01+00:00 https://www.ioccc.org/bugs.html