Roundcube Community Forum

Release Support => Pending Issues => Topic started by: crasheg on May 15, 2018, 05:34:07 AM

Title: Cyrillic names in addressbook after windows update (RC 1.3.6)
Post by: crasheg on May 15, 2018, 05:34:07 AM
Hello, my installation is:
Quote
Apache/2.4.33 (Win64) OpenSSL/1.0.2o PHP/7.2.5
libmysql - mysqlnd 5.0.12-dev - 20150407
mysqli,curl, mbstring,intl
After last update windows 10 to 1803 (biuld 17134.48) i have problem with addressbook. All contacts in list shown as empty lines (red line).
(https://i.imgur.com/6DvVzOo.jpg)

If i'll try to add new contact with cyrillic letters - in error log i getting DB Error((
(https://i.imgur.com/SwrfgbN.jpg)

In MySQL DB `contacts`everything is fine - cyrillic is cyrillic.
(https://i.imgur.com/JfvfKsK.jpg)
I've tried to rollback apache to 2.4.20, php to 7.0, rouncube to 1.30 and everywhere i have same problem.

Any ideas?
Title: Re: Cyrillic names in addressbook after windows update (RC 1.3.6)
Post by: crasheg on May 15, 2018, 06:48:35 AM
Temporary resolve for this problem:

/program/include/rcmail.php

replace line 181
Quote
setlocale(LC_ALL, $lang . '.utf8', $lang . '.UTF-8', 'en_US.utf8', 'en_US.UTF-8');
to
Quote
setlocale(LC_ALL, 'ru_RU.CP1251', 'rus_RUS.CP1251', 'Russian_Russia.1251');
But i think it's no good(