6.0.0-alpha10
5/14/25

[#15128] Normalize utf8mb3 charset before mbstring for MariaDB 10.6 and newer
Summary Normalize utf8mb3 charset before mbstring for MariaDB 10.6 and newer
Queue Horde Framework Packages
Type Bug
State Unconfirmed
Priority 2. Medium
Owners
Requester jiri.reischig (at) ecn (dot) cz
Created 12/15/2022 (881 days ago)
Due
Updated 12/16/2022 (880 days ago)
Assigned
Resolved
Milestone
Patch Yes

History
12/16/2022 08:17:04 AM Ralf Lang Comment #2 Reply to this comment
This has already been implemented in the maintaina-com/FRAMEWORK_6 
fork and should be incorporated to the FRAMEWORK_6 branches of Horde 
proper.

https://www.ralf-lang.de/2022/08/15/maintaina-horde-utf-8-on-php-8/

I am currently swamped with end of year work but this will happen very soon.
12/15/2022 03:48:05 PM jiri (dot) reischig (at) ecn (dot) cz Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Normalize utf8mb3 charset before mbstring for MariaDB 10.6 and newer
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
Reply to this comment
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)) {



Saved Queries