~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/default_modify.c

Cleanup default character set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
  for (dst_ptr= file_buffer; fgets(linebuff, BUFF_SIZE, cnf_file); )
107
107
  {
108
108
    /* Skip over whitespaces */
109
 
    for (src_ptr= linebuff; my_isspace(&my_charset_latin1, *src_ptr);
 
109
    for (src_ptr= linebuff; my_isspace(&my_charset_utf8_general_ci, *src_ptr);
110
110
         src_ptr++)
111
111
    {}
112
112
 
119
119
    /* correct the option (if requested) */
120
120
    if (option && in_section && !strncmp(src_ptr, option, opt_len) &&
121
121
        (*(src_ptr + opt_len) == '=' ||
122
 
         my_isspace(&my_charset_latin1, *(src_ptr + opt_len)) ||
 
122
         my_isspace(&my_charset_utf8_general_ci, *(src_ptr + opt_len)) ||
123
123
         *(src_ptr + opt_len) == '\0'))
124
124
    {
125
125
      char *old_src_ptr= src_ptr;
168
168
      {
169
169
        src_ptr+= sect_len;
170
170
        /* Skip over whitespaces. They are allowed after section name */
171
 
        for (; my_isspace(&my_charset_latin1, *src_ptr); src_ptr++)
 
171
        for (; my_isspace(&my_charset_utf8_general_ci, *src_ptr); src_ptr++)
172
172
        {}
173
173
 
174
174
        if (*src_ptr != ']')