/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1999-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "sftest.h"
#if _lib_locale
#include <locale.h>
#endif
tmain()
{
#if _lib_locale
float d;
if(!(lv = localeconv()))
texit(0);
decimal = '.';
thousand = 0;
if(thousand)
terror("Bad printing");
if(thousand)
d = 0.;
terror("Scan error %d", n);
if(d < 1000.099 || d > 1000.101)
terror("Bad scanning");
terror("Deep formatting error");
#endif
texit(0);
}