1/*- 2 * Copyright (c) 2001, 2003 Alexey Zelkin <phantom@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Copyright (c) 2011 The FreeBSD Foundation 6 * All rights reserved. 7 * Portions of this software were developed by David Chisnall 8 * under sponsorship from the FreeBSD Foundation. --- 16 unchanged lines hidden (view full) --- 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/lib/libc/locale/nl_langinfo.c 290618 2015-11-09 22:06:22Z bapt $"); |
34 35#include <langinfo.h> 36#include <limits.h> 37#include <locale.h> 38#include <stdlib.h> 39#include <string.h> 40#include <runetype.h> 41#include <wchar.h> --- 24 unchanged lines hidden (view full) --- 66 ret = "eucKR"; 67 else if (strcmp(s, "EUC-TW") == 0) 68 ret = "eucTW"; 69 else if (strcmp(s, "BIG5") == 0) 70 ret = "Big5"; 71 else if (strcmp(s, "MSKanji") == 0) 72 ret = "SJIS"; 73 else if (strcmp(s, "NONE") == 0) |
74 ret = "POSIX"; 75 else if (strcmp(s, "NONE:US-ASCII") == 0) |
76 ret = "US-ASCII"; 77 else if (strncmp(s, "NONE:", 5) == 0) 78 ret = (char *)(s + 5); 79 else 80 ret = (char *)s; 81 break; 82 case D_T_FMT: 83 ret = (char *) __get_current_time_locale(loc)->c_fmt; --- 126 unchanged lines hidden --- |