el.c (281995) | el.c (283084) |
---|---|
1/* $NetBSD: el.c,v 1.73 2014/06/18 18:12:28 christos Exp $ */ 2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Christos Zoulas of Cornell University. --- 27 unchanged lines hidden (view full) --- 36#if !defined(lint) && !defined(SCCSID) 37#if 0 38static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94"; 39#else 40__RCSID("$NetBSD: el.c,v 1.73 2014/06/18 18:12:28 christos Exp $"); 41#endif 42#endif /* not lint && not SCCSID */ 43#include <sys/cdefs.h> | 1/* $NetBSD: el.c,v 1.73 2014/06/18 18:12:28 christos Exp $ */ 2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Christos Zoulas of Cornell University. --- 27 unchanged lines hidden (view full) --- 36#if !defined(lint) && !defined(SCCSID) 37#if 0 38static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94"; 39#else 40__RCSID("$NetBSD: el.c,v 1.73 2014/06/18 18:12:28 christos Exp $"); 41#endif 42#endif /* not lint && not SCCSID */ 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/lib/libedit/el.c 281995 2015-04-26 09:25:44Z bapt $"); | 44__FBSDID("$FreeBSD: head/lib/libedit/el.c 283084 2015-05-18 22:03:05Z bapt $"); |
45 46/* 47 * el.c: EditLine interface functions 48 */ 49#include <sys/types.h> 50#include <sys/param.h> 51#include <string.h> 52#include <stdlib.h> --- 38 unchanged lines hidden (view full) --- 91 return NULL; 92 } 93 94 /* 95 * Initialize all the modules. Order is important!!! 96 */ 97 el->el_flags = 0; 98#ifdef WIDECHAR | 45 46/* 47 * el.c: EditLine interface functions 48 */ 49#include <sys/types.h> 50#include <sys/param.h> 51#include <string.h> 52#include <stdlib.h> --- 38 unchanged lines hidden (view full) --- 91 return NULL; 92 } 93 94 /* 95 * Initialize all the modules. Order is important!!! 96 */ 97 el->el_flags = 0; 98#ifdef WIDECHAR |
99 if (setlocale(LC_CTYPE, NULL) != NULL) { | 99 if (setlocale(LC_CTYPE, NULL) != NULL){ |
100 if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) 101 el->el_flags |= CHARSET_IS_UTF8; 102 } 103#endif 104 105 if (terminal_init(el) == -1) { 106 el_free(el->el_prog); 107 el_free(el); --- 527 unchanged lines hidden --- | 100 if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) 101 el->el_flags |= CHARSET_IS_UTF8; 102 } 103#endif 104 105 if (terminal_init(el) == -1) { 106 el_free(el->el_prog); 107 el_free(el); --- 527 unchanged lines hidden --- |