fails without mbstring
Bug #734494 reported by
Michal Čihař
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-gettext |
Fix Committed
|
High
|
Данило Шеган |
Bug Description
(Forwarded from https:/
When php is compiled without mbstring, php-gettext completely fails to work. I think it would be great if still worked for simple (and probably most common) case where everything is utf-8.
Related branches
Changed in php-gettext: | |
status: | New → Fix Committed |
assignee: | nobody → Данило Шеган (danilo) |
importance: | Undecided → High |
To post a comment you must log in.
Hi, thanks for the report. I've committed a fix similar to what was proposed on a bug on SF. It's in r60 of lp:php-gettext, and depending on how much you need it in a release, I can roll one out later today.
To fix encoding stuff properly, it'd probably take a bit more effort. However, proposed patch on SF was just passing the text through, so I did that in my version as well. I didn't want to define such stubs since that might conflict with something else expecting those functions (and php-gettext is a library and is commonly combined with other code).
Thus, I just wrapped the call with function_exists stuff.
Let me know how it works.
Also, can you please check if "ini_get( 'mbstring. internal_ encoding' )" returns anything when PHP is compiled with no mbstring support? (this is used in _get_codeset() when PO/MO file has no charset defined).