Encoding tis-620 is not multibyte (bug #1013787).

This commit is contained in:
Michal Čihař
2004-09-03 10:08:37 +00:00
parent 2888f20eec
commit ff77a8274e
2 changed files with 10 additions and 1 deletions

View File

@@ -14,7 +14,12 @@
* The SQL Parser code relies heavily on these functions.
*/
$GLOBALS['PMA_allow_mbstr'] = @function_exists('mb_strlen') && substr($GLOBALS['charset'], 0, 8) != 'windows-';
/* windows-* and tis-620 are not supported and are not multibyte, so there is
* no need to handle them. */
$GLOBALS['PMA_allow_mbstr'] = @function_exists('mb_strlen')
&& substr($GLOBALS['charset'], 0, 8) != 'windows-'
&& $GLOBALS['charset'] != 'tis-620';
if ($GLOBALS['PMA_allow_mbstr']) {
// the hebrew lang file uses iso-8859-8-i, encoded RTL,
// but mb_internal_encoding only supports iso-8859-8