~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/tztime.cc

  • Committer: Monty Taylor
  • Date: 2008-09-13 20:24:20 UTC
  • mfrom: (383.1.35 drizzle)
  • Revision ID: monty@inaugust.com-20080913202420-lkj76ewbabl8ljvp
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
583
583
/*
584
584
  String with names of SYSTEM time zone.
585
585
*/
586
 
static const String tz_SYSTEM_name("SYSTEM", 6, &my_charset_latin1);
 
586
static const String tz_SYSTEM_name("SYSTEM", 6, &my_charset_utf8_general_ci);
587
587
 
588
588
 
589
589
/*
911
911
  uint minutes= abs((int)(offset % SECS_PER_HOUR / SECS_PER_MIN));
912
912
  ulong length= snprintf(name_buff, sizeof(name_buff), "%s%02d:%02d",
913
913
                         (offset>=0) ? "+" : "-", hours, minutes);
914
 
  name.set(name_buff, length, &my_charset_latin1);
 
914
  name.set(name_buff, length, &my_charset_utf8_general_ci);
915
915
}
916
916
 
917
917
 
1052
1052
{
1053
1053
  if (default_tzname)
1054
1054
  {
1055
 
    String tmp_tzname2(default_tzname, &my_charset_latin1);
 
1055
    String tmp_tzname2(default_tzname, &my_charset_utf8_general_ci);
1056
1056
    /*
1057
1057
      Time zone tables may be open here, and my_tz_find() may open
1058
1058
      most of them once more, but this is OK for system tables open
1118
1118
 
1119
1119
  number_tmp= 0;
1120
1120
 
1121
 
  while (str < end && my_isdigit(&my_charset_latin1, *str))
 
1121
  while (str < end && my_isdigit(&my_charset_utf8_general_ci, *str))
1122
1122
  {
1123
1123
    number_tmp= number_tmp*10 + *str - '0';
1124
1124
    str++;
1130
1130
 
1131
1131
  offset_tmp = number_tmp * MINS_PER_HOUR; number_tmp= 0;
1132
1132
 
1133
 
  while (str < end && my_isdigit(&my_charset_latin1, *str))
 
1133
  while (str < end && my_isdigit(&my_charset_utf8_general_ci, *str))
1134
1134
  {
1135
1135
    number_tmp= number_tmp * 10 + *str - '0';
1136
1136
    str++;