MDEV-339, LP1001340 - system_time_zone is wrong on Windows

On localized Windows versions, Windows uses localized time zone names and contain non-ASCII characters.  non-ASCII characters appear broken when displayed by clients
The fix is to declare system_time_zone variable to have UTF8 encoding and to convert tzname to UTF8.
This commit is contained in:
Vladislav Vaintroub 2012-06-15 17:21:06 +02:00
commit 99edca97f4
2 changed files with 17 additions and 8 deletions

View file

@ -2246,7 +2246,7 @@ static char *system_time_zone_ptr;
static Sys_var_charptr Sys_system_time_zone(
"system_time_zone", "The server system time zone",
READ_ONLY GLOBAL_VAR(system_time_zone_ptr), NO_CMD_LINE,
IN_FS_CHARSET, DEFAULT(system_time_zone));
IN_SYSTEM_CHARSET, DEFAULT(system_time_zone));
static Sys_var_ulong Sys_table_def_size(
"table_definition_cache",