Lines 30-36
Link Here
|
30 |
[ -f "/usr/share/mysql/charsets/$CHSET.conf" ] && return |
30 |
[ -f "/usr/share/mysql/charsets/$CHSET.conf" ] && return |
31 |
echo "Unable to find charset: $CHSET" |
31 |
echo "Unable to find charset: $CHSET" |
32 |
fi |
32 |
fi |
33 |
default_charset="$(. /etc/sysconfig/i18n && locale |sed -ne 's/^LC_COLLATE="[^".]\+\.\([^"]\+\)"$/\1/p')" |
33 |
default_charset="$(. /etc/sysconfig/i18n && locale |sed -ne 's/^LC_COLLATE="*[^".]\+\.\([^"]\+\)"*$/\1/p')" |
34 |
case "$default_charset" in |
34 |
case "$default_charset" in |
35 |
CP1251) |
35 |
CP1251) |
36 |
CHSET=cp1251 |
36 |
CHSET=cp1251 |