When I ported the run_locale_utils.sh script to Windows I seen the
following lines:
run_locale_utils.sh, line 244:
# set necessary environment variables
LC_ALL=$3
LANG=$3
This lines modify the environment variables for run_locale_utils.sh
process, but not exported to the locale and localedef processes when
that processes are created. When I added the following lines:
-----------
export LC_ALL
export LANG
-----------
I got the following output:
./ru_RU.KIO8-R.sh -d
./localedef -w -c -f /usr/src/WorkingCopy/etc/nls/charmaps/KOI8-R -I
/usr/src/WorkingCopy/etc/nls/src/ru_RU /tmp/locale.14561/ru_RU.KOI8- R
2>/dev/null
./locale -ck -h LC_ALL > /tmp/locale.14561/out.1
./localedef -w -c -f /usr/src/WorkingCopy/etc/nls/charmaps/KOI8-R -I
/tmp/locale.14561/out.1 /tmp/locale.14561/ru_RU.KOI8-R 2>/dev/null
Error - localedef returned code: 4
./locale -ck -h LC_ALL > /tmp/locale.14561/out.2
./localedef -w -c -f /usr/src/WorkingCopy/etc/nls/charmaps/KOI8-R -I
/tmp/locale.14561/out.2 /tmp/locale.14561/ru_RU.KOI8-R 2>/dev/null
Error - localedef returned code: 4
./locale -ck -h LC_ALL > /tmp/locale.14561/out.3
# +-----------------------+--------+--------+--------+
# | DIAGNOSTIC | ACTIVE | TOTAL |INACTIVE|
# +-----------------------+--------+--------+--------+
# | (S7) ASSERTION | 2 | 7 | 71% |
# +-----------------------+--------+--------+--------+
## Assertions = 7
## FailedAssertions = 2
The error message from localedef calls:
Error 399: decimal value in the range [0, 255) expected: \d384
The question is: should be LANG and LC_ALL variables exported or not?
Farid.