1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00
Commit Graph

25 Commits

Author SHA1 Message Date
Georg Richter
ba712ddf96 CONC-763: ma_charset.c misses MySQL collation ID 309 - utf8mb4_0900_bin 2025-03-31 13:17:50 +02:00
Georg Richter
fc33778492 Added new utf8 general1400_as_ci collations
The following collations from 11.5 were added:

579: utf8mb3_general1400_as_ci
611: utf8mb4_general1400_as_ci
2024-05-10 11:06:37 +02:00
Alexander Barkov
df6feae0df Libmariadb changes for MDEV-27009 Add UCA-14.0.0 collations 2022-07-27 12:56:56 +04:00
Georg Richter
3f7719c74d Typo fixes (from PR #200) 2022-06-27 13:23:35 +02:00
Rucha Deodhar
2f7230c62b MDEV-8334: Rename utf8 to utf8mb3
This patch is made as a part of MDEV-8334 to fix failing test in unit and
main test suite so that utf8mb3 characterset is recognized. Failing tests:
main.mysql_client_test
main.mysql_client_test_comp
unit.conc_basic-t
unit.conc_charset
unit.conc_connection
2021-04-17 02:10:25 +05:30
Ryuta Kamizono
e9a2c9eccc Fix typo utf8m4 -> utf8mb4 2021-04-08 23:42:15 +05:30
Georg Richter
c17947c68a Partially revert of 9a50a7d:
Instead of cheking GetConsoleWindow() function, we need to check
if GetConsoleCP() returns a positive number, otherwise we will use
the ANSI Code page Identifier for the system (GetACP()).
2020-10-01 07:32:13 +02:00
Georg Richter
7052619cc4 Added build option WITH_ICONV.
Default is OFF, which means MariaDB Connector/C
will be built without iconv support.

If set to OFF The API function mariadb_convert_string will always
return -1 and errorcode ENOTSUP.
2020-09-14 12:01:06 +02:00
Marko Mäkelä
cdfecebc99 Fix GCC -Wstringop-truncation 2020-05-14 09:04:07 +03:00
Daniel Black
dfd8f0bb79 Solaris fix: iconv on solaris take const char **
Prevents compile error:

/export/home/dan/mariadb-server-10.4/libmariadb/libmariadb/ma_charset.c:1454:32: error: passing argument 2 of 'iconv' from incompatible pointer type [-Werror=incompatible-pointer-types]
 1454 |   if ((rc= iconv(conv, IF_WIN(,(char **))&from, from_len, &to, to_len)) == (size_t)-1)
      |                                ^
      |                                |
      |                                char **
/export/home/dan/mariadb-server-10.4/libmariadb/include/ma_global.h:1096:21: note: in definition of macro 'IF_WIN'
 1096 | #define IF_WIN(A,B) B
      |                     ^
In file included from /export/home/dan/mariadb-server-10.4/libmariadb/libmariadb/ma_charset.c:59:
/usr/include/iconv.h:47:30: note: expected 'const char ** restrict' but argument is of type 'char **'
   47 | extern size_t iconv(iconv_t, const char **_RESTRICT_KYWD,
2020-04-04 18:45:53 +11:00
Fabien Bagard
61ecc3bf97 Fix typo in charsets names 2020-02-12 17:03:41 +01:00
Georg Richter
b0f2e4e72f Coverity fixes and travis integration 2018-07-06 09:28:24 +02:00
Georg Richter
9ba0d739ee Merge commit 'fbca960c33846147a5da301977df253e5a912527' 2018-04-24 18:02:43 +02:00
Georg Richter
1c194bd78f Support for -Wlogical-op flag and warning fixes (Patch provided by Monty) 2018-04-24 17:18:31 +02:00
Georg Richter
443f7568ee Revert "Added -Wlogical-op warning flag and fixed two warnings"
This reverts commit 2198a01fed.
2018-04-24 17:17:20 +02:00
Georg Richter
2198a01fed Added -Wlogical-op warning flag and fixed two warnings 2018-04-24 17:04:59 +02:00
Lawrin Novitsky
9a50a7d481 Corrections of the codepage number for some collations.
According to https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756(v=vs.85).aspx code page for latin1 is 1252, and not 850. The same for some other collations.
Changed "auto" charset detection to use only GetACP() on windows.
Since I guess C/ODBC is the only user of that feature, and because GetConsoleCP() returns OEM codepage, and not the default system codepage, which is used by DM as source codepage for recoding to unicode.
2018-04-19 18:40:00 +02:00
Vladislav Vaintroub
7698e3f95e more clang fixes 2018-02-12 16:47:43 +00:00
Georg Richter
fe129ed39f CONC-299: Add support for missing collation and character sets
Added the character sets and collations described in  CONC-299.
No additional test added, since charset/test_conc33 checks if all character sets and collations from server are supported.
2017-12-25 16:41:44 +01:00
Georg Richter
99419d35f0 Fix for CONC-223: Add client support for missing collations
If a collation is not available the client will not be able to set
correct character set.
2017-01-02 12:47:52 +01:00
Georg Richter
9f88e25fd6 Compiler warning fixes 2016-09-03 12:46:50 +02:00
Vladislav Vaintroub
e1280abb82 Use case-insensitive comparision for character set names 2016-05-09 16:47:37 +02:00
Georg Richter
6126e668ca 10.2-integration: Added support for character set "auto":
character set auto sets the character set to the corresponding locale or
codepage (windows)
2016-05-08 12:28:37 +02:00
Georg Richter
91ad315e9a Make sure that on windows we include iconv.h from win-iconv, not a
system one
2016-03-14 17:16:39 +01:00
Georg Richter
4ca933bb81 Global cleanup:
removed global locks
  removed dead code and files
  removed dbug
2016-02-08 18:43:02 +01:00