~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/charset.cc

  • Committer: Monty Taylor
  • Date: 2009-06-09 21:56:05 UTC
  • mto: This revision was merged to the branch mainline in revision 1060.
  • Revision ID: mordred@inaugust.com-20090609215605-sy08xcb15rm598hg
Removed some more unused code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
}
282
282
 
283
283
 
284
 
#ifdef BACKSLASH_MBTAIL
285
 
static CHARSET_INFO *fs_cset_cache= NULL;
286
 
 
287
 
CHARSET_INFO *fs_character_set()
288
 
{
289
 
  if (!fs_cset_cache)
290
 
  {
291
 
    char buf[10]= "cp";
292
 
    GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_IDEFAULTANSICODEPAGE,
293
 
                  buf+2, sizeof(buf)-3);
294
 
    /*
295
 
      We cannot call get_charset_by_name here
296
 
      because fs_character_set() is executed before
297
 
      LOCK_THD_charset mutex initialization, which
298
 
      is used inside get_charset_by_name.
299
 
      As we're now interested in cp932 only,
300
 
      let's just detect it using strcmp().
301
 
    */
302
 
    fs_cset_cache= !strcmp(buf, "cp932") ?
303
 
                   &my_charset_cp932_japanese_ci : &my_charset_bin;
304
 
  }
305
 
  return fs_cset_cache;
306
 
}
307
 
#endif
308
 
 
309
284
/*
310
285
  Escape apostrophes by doubling them up
311
286