<div dir="ltr"><div>Hi Otto,</div><div><br></div><div>you're right - looks like it was forgotten to add this option when building C/C as a sunproject inside server. I fixed that now:</div><div><br></div><div>diff --git a/CMakeLists.txt b/CMakeLists.txt<br>index c85baf2..4045491 100644<br>--- a/CMakeLists.txt<br>+++ b/CMakeLists.txt<br>@@ -25,7 +25,7 @@ get_directory_property(IS_SUBPROJECT PARENT_DIRECTORY)<br> SET_PROPERTY(DIRECTORY PROPERTY INCLUDE_DIRECTORIES)<br> FOREACH(V WITH_MYSQLCOMPAT WITH_MSI WITH_SIGNCODE WITH_RTC WITH_UNIT_TESTS<br> WITH_DYNCOL WITH_EXTERNAL_ZLIB WITH_CURL WITH_SQLITE WITH_SSL WITH_ICONV<br>- INSTALL_LAYOUT WITH_TEST_SRCPKG)<br>+ DEFAULT_CHARSET INSTALL_LAYOUT WITH_TEST_SRCPKG)<br> SET(${V} ${${OPT}${V}})<br> ENDFOREACH()</div><div><br></div><div>With this patch you should be able to specify the character set in server build with</div><div>cmake -DCONC_DEFAULT_CHARSET=utf8mb4</div><div><br></div><div>/Georg<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 29, 2020 at 10:41 PM Otto Kekäläinen <<a href="mailto:otto@debian.org">otto@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I tested this but it did not at least directly work:<br>
<br>
commit b8e537d55b467eb285a82842e73bb22732ef9ad6 (HEAD -> master-next)<br>
Author: Otto Kekäläinen <<a href="mailto:otto@debian.org" target="_blank">otto@debian.org</a>><br>
Date: Tue Sep 29 21:27:02 2020 +0300<br>
<br>
Use build flag to enforce default charset as utf8mb4 (Closes: ##933063)<br>
<br>
diff --git a/debian/rules b/debian/rules<br>
index 819ac6ea0..12b162002 100755<br>
--- a/debian/rules<br>
+++ b/debian/rules<br>
@@ -101,6 +101,7 @@ endif<br>
-DSYSTEM_TYPE="debian-$(DEB_HOST_GNU_SYSTEM)" \<br>
-DBUILD_CONFIG=mysql_release \<br>
-DWITH_SSL=bundled \<br>
+ -DDEFAULT_CHARSET=utf8mb4 \<br>
-DPLUGIN_TOKUDB=NO \<br>
-DPLUGIN_CASSANDRA=NO \<br>
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \<br>
<br>
<br>
---><br>
<br>
<br>
MariaDB [(none)]> status<br>
--------------<br>
mariadb Ver 15.1 Distrib 10.5.5-MariaDB, for debian-linux-gnu<br>
(x86_64) using readline 5.2<br>
<br>
Connection id: 76<br>
Current database:<br>
Current user: root@localhost<br>
SSL: Not in use<br>
Current pager: stdout<br>
Using outfile: ''<br>
Using delimiter: ;<br>
Server: MariaDB<br>
Server version: 10.5.5-MariaDB-2-debug Debian 10<br>
Protocol version: 10<br>
Connection: Localhost via UNIX socket<br>
Server characterset: utf8mb4<br>
Db characterset: utf8mb4<br>
Client characterset: latin1<br>
Conn. characterset: latin1<br>
UNIX socket: /run/mysqld/mysqld.sock<br>
Uptime: 27 sec<br>
<br>
Threads: 22 Questions: 674 Slow queries: 0 Opens: 199 Open tables:<br>
37 Queries per second avg: 24.962<br>
--------------<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Georg Richter, Senior Software Engineer<br></div><div>MariaDB Corporation Ab<br></div></div></div></div></div>