[Tickets #15128] Normalize utf8mb3 charset before mbstring for MariaDB 10.6 and newer

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Dec 15 15:48:05 UTC 2022


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/15128
------------------------------------------------------------------------------
  Ticket             | 15128
  Created By         | jiri.reischig at ecn.cz
  Summary            | Normalize utf8mb3 charset before mbstring for MariaDB
                     | 10.6 and newer
  Queue              | Horde Framework Packages
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


jiri.reischig at ecn.cz (2022-12-15 15:48) wrote:

MariaDB from 10.6 use utf8mb3 or utf8mb4 charsets which is not  
recognized properly in Horde.
Problem is in calendar (kronolith), contacts (turba), etc.

I try modify String.php for "normalize" charsets for mbstring, but I  
don't known if it right place for it.

--- /usr/share/pear/Horde/String.php    2022-12-14 18:03:07.231100525 +0100
+++ /usr/share/pear/Horde/String.orig.php       2022-12-14  
16:52:08.029930071 +0100
@@ -157,12 +157,6 @@

          /* Try mbstring. */
          if (Horde_Util::extensionExists('mbstring')) {
-
-       /* Normalize for utf8mb */
-       $utf8mb = array('utf8mb3', 'utf8mb4', 'utf8');
-       $from = str_ireplace($utf8mb, 'utf-8', $from);
-       $to = str_ireplace($utf8mb, 'utf-8', $to);
-
              try {
                  $out = @mb_convert_encoding($input, $to,  
self::_mbstringCharset($from));
                  if (!empty($out)) {








More information about the bugs mailing list