Details
-
Bug
-
Resolution: Fixed
-
None
-
Critical
-
-
Empty show more show less
Description
problem
The database update command was not working anymore on some systems using a password containing special characters.
reason
The reason is in the way how PHP sets the default locale, which is depending on the underlying C lib. Therefore the default value may either be the C locale or the one configured in the LC_ALL env variable. For translate5 we were always assuming that setting the LC_ALL var is enough - what is not the case.
To fix that a setlocale to empty string must be called in the very beginning step of PHPs request processing which then sets the values for sure to the env values. Since this is the assumed behaviour - and was for a long time the default behaviour at least on our production server - we just do that as a fix.