Thanks!

I confirm the patch from Georg fixes this and the result looks like:

g++ b933063.cpp -l mariadbclient && ./a.out
character_set_client: utf8mb4
character_set_connection: utf8mb4
character_set_database: utf8mb4
character_set_filesystem: binary
character_set_results: utf8mb4
character_set_server: utf8mb4
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
spider_remote_access_charset:
spider_use_table_charset: -1


I also extended Salsa-CI to automatically test for this so that this
simple client library linking build does not regress unnoticed:
https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commits/bugfix/933063-default-client-charset-utf8mb4

Open 
https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/3c62617cf955ece894504e88a72b3ce207635d05
to view the changes.


Georg: Will you do this same `-DCONC_DEFAULT_CHARSET=utf8mb4` change upstream?

Reply via email to