ALT Linux Bugzilla
– Attachment 5588 Details for
Bug 26817
Некорректно определяется кодировка по-умолчанию в init.d-скрипте в случаях когда /etc/sysconfig/mysqld не содержит явного ее указания
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
initscript patch
mysqld.init.diff (text/plain), 836 bytes, created by
Michael Shigorin
on 2012-10-08 18:03:37 MSK
(
hide
)
Description:
initscript patch
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2012-10-08 18:03:37 MSK
Size:
836 bytes
patch
obsolete
>diff --git a/mysqld.init b/mysqld.init >index 613ee24..fd23bc1 100644 >--- a/mysqld.init >+++ b/mysqld.init >@@ -38,19 +38,13 @@ charset() > || echo "Unable to find charset: $CHSET" > fi > unset LANG LANGUAGE LC_ALL >- default_charset="$(HOME=/var/empty . /etc/profile.d/lang.sh && locale |sed -ne 's/^LC_COLLATE="\?[^".]\+\.\([^"]\+\)"\?$/\1/p')" >+ default_charset="$(HOME=/var/empty . /etc/profile.d/lang.sh && locale \ >+ | sed -ne 's/^LC_COLLATE="\?[^".]\+\.\([^"]\+\)"\?$/\1/p' \ >+ | tr '[:upper:]' '[:lower:]' \ >+ | tr -d '-')" > case "$default_charset" in >- CP1251) >- CHSET=cp1251 >- ;; >- KOI8-R) >- CHSET=koi8r >- ;; >- KOI8-U) >- CHSET=koi8u >- ;; >- UTF-8) >- CHSET=utf8 >+ cp1251|koi8r|koi8u|utf8) >+ CHSET="$default_charset" > ;; > *) > echo "Unable to find proper charset from system locale, setting 'utf8'."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26817
: 5588