# excerpt from top of script: #!/bin/bash echo "locale is: " locale # create an array of grouped files. Hopefully LC_ALL=C takes care of sort issues if $GROUPING; then LC_ALL="C" grouping=( $WORK_DIR/${TSET_NUM}-group*.mpg ) fi echo "grouping is ${grouping[@]}" # Remove any existing log file if ! $SWITCHED_MODE && ! $TITLESET_MODE && ! $DO_TITLESETS; then test -f "$LOG_FILE" && rm -fv "$LOG_FILE" fi # do some locale debugging echo "You are using the following locale settings:" | tee -a "$LOG_FILE" locale |tee -a "$LOG_FILE" 2>&1 ########### OUTPUT ############################################## locale is: LANG=ru_RU.KOI8-R LANGUAGE=ru LC_CTYPE="ru_RU.KOI8-R" LC_NUMERIC="ru_RU.KOI8-R" LC_TIME="ru_RU.KOI8-R" LC_COLLATE="ru_RU.KOI8-R" LC_MONETARY="ru_RU.KOI8-R" LC_MESSAGES="ru_RU.KOI8-R" LC_PAPER="ru_RU.KOI8-R" LC_NAME="ru_RU.KOI8-R" LC_ADDRESS="ru_RU.KOI8-R" LC_TELEPHONE="ru_RU.KOI8-R" LC_MEASUREMENT="ru_RU.KOI8-R" LC_IDENTIFICATION="ru_RU.KOI8-R" LC_ALL=ru_RU.KOI8-R grouping is /tmp/todisc-work.0/1-group-1-1.mpg removed `/home/knoppix/todisc.log' You are using the following locale settings: LANG=ru_RU.KOI8-R LANGUAGE=ru LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=C