summaryrefslogtreecommitdiff
path: root/src/interpret.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interpret.c')
-rw-r--r--src/interpret.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/interpret.c b/src/interpret.c
index 782d05b5..41656375 100644
--- a/src/interpret.c
+++ b/src/interpret.c
@@ -1,19 +1,19 @@
/*
* Copyright (C) 2001,2002,2003 Red Hat, Inc.
*
- * This is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Library General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
+ * Lesser General Public License for more details.
*
- * You should have received a copy of the GNU Library General Public
- * License along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <config.h>
@@ -72,15 +72,17 @@ main(int argc, char **argv)
g_type_init();
terminal = argv[1];
- termcap = _vte_termcap_new(g_build_filename(TERMCAPDIR, terminal, NULL));
- if (termcap == NULL) {
- termcap = _vte_termcap_new("/etc/termcap");
- }
+ termcap = _vte_termcap_new(terminal);
+ if (termcap == NULL) {
+ g_printerr ("No termcap entry for '%s'\n", terminal);
+ return 1;
+ }
+
array = g_array_new(FALSE, FALSE, sizeof(gunichar));
matcher = _vte_matcher_new(terminal, termcap);
- subst = _vte_iso2022_state_new(NULL, NULL, NULL);
+ subst = _vte_iso2022_state_new(NULL, VTE_ISO2022_DEFAULT_UTF8_AMBIGUOUS_WIDTH, NULL, NULL);
for (;;) {
l = read (infile, buf, sizeof (buf));