1984263bcSMatthew Dillon /* 20d5acd74SJohn Marino * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org> 30d5acd74SJohn Marino * Copyright (c) 1991, 1993 40d5acd74SJohn Marino * The Regents of the University of California. All rights reserved. 50d5acd74SJohn Marino * 60d5acd74SJohn Marino * Copyright (c) 2011 The FreeBSD Foundation 70d5acd74SJohn Marino * All rights reserved. 80d5acd74SJohn Marino * Portions of this software were developed by David Chisnall 90d5acd74SJohn Marino * under sponsorship from the FreeBSD Foundation. 100d5acd74SJohn Marino * 110d5acd74SJohn Marino * Redistribution and use in source and binary forms, with or without 120d5acd74SJohn Marino * modification, are permitted provided that the following conditions 130d5acd74SJohn Marino * are met: 140d5acd74SJohn Marino * 1. Redistributions of source code must retain the above copyright 150d5acd74SJohn Marino * notice, this list of conditions and the following disclaimer. 160d5acd74SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 170d5acd74SJohn Marino * notice, this list of conditions and the following disclaimer in the 180d5acd74SJohn Marino * documentation and/or other materials provided with the distribution. 19*c66c7e2fSzrj * 3. Neither the name of the University nor the names of its contributors 200d5acd74SJohn Marino * may be used to endorse or promote products derived from this software 210d5acd74SJohn Marino * without specific prior written permission. 220d5acd74SJohn Marino * 230d5acd74SJohn Marino * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 240d5acd74SJohn Marino * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 250d5acd74SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 260d5acd74SJohn Marino * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 270d5acd74SJohn Marino * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 280d5acd74SJohn Marino * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 290d5acd74SJohn Marino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 300d5acd74SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 310d5acd74SJohn Marino * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 320d5acd74SJohn Marino * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 330d5acd74SJohn Marino * SUCH DAMAGE. 340d5acd74SJohn Marino * 350d5acd74SJohn Marino * @(#)localeconv.c 8.1 (Berkeley) 6/4/93 360d5acd74SJohn Marino * $FreeBSD: head/lib/libc/locale/localeconv.c 227753 2011-11-20 14:45:42Z theraven $ 37984263bcSMatthew Dillon */ 38984263bcSMatthew Dillon 390d5acd74SJohn Marino 40984263bcSMatthew Dillon #include <locale.h> 41984263bcSMatthew Dillon 420d5acd74SJohn Marino #include "lmonetary.h" 430d5acd74SJohn Marino #include "lnumeric.h" 440d5acd74SJohn Marino 45984263bcSMatthew Dillon /* 46