#2688 mb_language($mb_lang) is wrong

open
Craig Knudsen
5
2013-01-14
2012-08-21
Raphaël Droz
No

WebCalendar.class contains
if (@mb_language($mb_lang) && mb_internal_encoding(translate('charset'))
where $mb_lang = strtok($lang, '-')
It's wrong, eg $lang = 'French", $mb_lang = "French", mb_language($mb_lang) = false.
The problem then is that $enable_mbstring = false, so no use of mb_export_fold_lines() while I must be able to rely on it.

Discussion