mariadb/client
Vladislav Vaintroub 9ea83f7fbd MDEV-26713 set console codepage to what user set in --default-character-set
If someone on whatever reasons uses --default-character-set=cp850,
this will avoid incorrect display, and inserting incorrect data.

Adjusting console codepage sometimes also needs to happen with
--default-charset=auto, on older Windows. This is because autodetection
is not always exact. For example, console codepage on US editions of
Windows is 437. Client autodetects it as cp850, a rather loose
approximation, given 46 code point differences. We change the console
codepage to cp850, so that there is no discrepancy.

That fix is currently Windows-only, and serves people who used combination
of chcp to achieve WYSIWYG effect (although, this would mostly likely used
with utf8 in the past)

Now, --default-character-set would be a replacement for that.

Fix fs_character_set() detection of current codepage.
2021-12-15 19:13:57 +01:00
..
async_example.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
client_metadata.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
client_priv.h MDEV-16355 Add option for mysqldump to read data as of specific timestamp from system-versioned tables 2021-08-27 23:02:37 +02:00
CMakeLists.txt Merge remote-tracking branch 'upstream/10.4' into 10.5 2021-09-10 17:16:18 +03:00
completion_hash.cc Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
echo.c Update FSF Address 2019-05-11 21:29:06 +03:00
mariadb-conv.cc mariadb-conv --character-sets-dir 2021-05-20 18:33:07 +02:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc MDEV-26713 set console codepage to what user set in --default-character-set 2021-12-15 19:13:57 +01:00
mysql_plugin.c Merge 10.5 into 10.6 2021-09-11 17:55:27 +03:00
mysql_upgrade.c increase the version string buffer in mariadb-upgrade 2021-09-07 21:15:51 +02:00
mysqladmin.cc MDEV-26713 set console codepage to what user set in --default-character-set 2021-12-15 19:13:57 +01:00
mysqlbinlog.cc MDEV-26221: DYNAMIC_ARRAY use size_t for sizes 2021-10-19 16:00:26 +03:00
mysqlcheck.c MDEV-26713 set console codepage to what user set in --default-character-set 2021-12-15 19:13:57 +01:00
mysqldump.c Merge 10.6 into 10.7 2021-10-05 13:38:53 +03:00
mysqlimport.c MDEV-26713 set console codepage to what user set in --default-character-set 2021-12-15 19:13:57 +01:00
mysqlshow.c MDEV-26713 set console codepage to what user set in --default-character-set 2021-12-15 19:13:57 +01:00
mysqlslap.c Windows : fix clang-cl build. 2021-11-28 11:43:35 +01:00
mysqltest.cc MDEV-27227 mysqltest, Windows - support background execution in 'exec' command 2021-12-15 19:13:57 +01:00
readline.cc MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00