#ifndef _tmp_locales
#define _tmp_locales

//written by Luigi Bianchi, www.luigibianchi.com

#define __USELOCALES__//required by Borland compilers
#include <locale>
class SmartLocale
{  public:
      SmartLocale(int cat = LC_NUMERIC, const char* locale = "English_United States.437"):category(cat)
      {  bOk = setlocale(category, locale);  };
      virtual ~SmartLocale()
      {  if (bOk) setlocale(category, "");   };
   private:
      int category;
      bool bOk;
};
#endif

Copyright (2000), Luigi Bianchi
Last Update: September 8, 2000