summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-06-03 16:08:24 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-06-03 16:08:24 +0000
commit7c00ac1ce443babebb1102d1793967bce9a7b5de (patch)
tree56294fc657018f5d18f9b31582537fd53ca4378e
parenta66cbc23aaf3ef58dd156fd04286a6d965d70e9a (diff)
downloadvte-7c00ac1ce443babebb1102d1793967bce9a7b5de.tar.gz
Tweak handling of invalid multibyte characters, preventing some hangs.vte_0_3_24
* src/vte.c: Tweak handling of invalid multibyte characters, preventing some hangs.
-rw-r--r--src/vte.c6
-rw-r--r--vte.spec5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/vte.c b/src/vte.c
index b3cdcad7..600e074b 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -5025,11 +5025,9 @@ vte_terminal_process_incoming(gpointer data)
/* Convert the data to wide characters. */
if (g_iconv(terminal->pvt->incoming_conv, &ibuf, &icount,
- &obuf, &ocount) == -1) {
+ &obuf, &ocount) == -1) {
/* No dice. Try again when we have more data. */
- if ((icount > VTE_UTF8_BPC) &&
- (icount < terminal->pvt->n_incoming) &&
- (errno == EILSEQ)) {
+ if ((icount > VTE_UTF8_BPC) && (errno == EILSEQ)) {
/* We barfed on something that had a high bit, so
* discard it. */
start = terminal->pvt->n_incoming - icount;
diff --git a/vte.spec b/vte.spec
index 4fa02464..e9cbc787 100644
--- a/vte.spec
+++ b/vte.spec
@@ -1,5 +1,5 @@
Name: vte
-Version: 0.3.23
+Version: 0.3.24
Release: 1
Summary: An experimental terminal emulator.
License: LGPL
@@ -53,6 +53,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{_libdir}/pkgconfig/*
%changelog
+* Mon Jun 3 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.24-1
+- tweak handling of invalid sequences again
+
* Fri May 31 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.23-1
- switch to g_convert (again?)
- fix use of core fonts