repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 79604fca09a3552f486527c7ae8e3a0bc62f9c17:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 79604fca09a3552f486527c7ae8e3a0bc62f9c17
Author: Marc Lehmann 
Date:   Tue Feb 24 11:51:51 2009 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index f330a443f13682598dbe502f36f7e5f17d50ac29..
index ..6adb1b431ec249e7e36dc3e091bad89bab618b45 100644
--- a/Changes
+++ b/Changes
@@ -25,6 +25,8 @@ TODO: selection_beg/end should set screen, or so
           systems supporting it (patch by Russell Harmon).
 	- urxvt did not compile without frills enabled
           (analysed by Matthew Rosewarne).
+        - correctly reset the mbstate after an illegal
+          input sequence when handling terminal output (Emanuele Giaquinta).

 9.06 Sat Nov  8 17:47:18 CET 2008
 	- NOTICE: this release updates terminfo/termcap.
diff --git a/src/command.C b/src/command.C
index fa550f5ed919fdae59e0420e37ac1ebfe1adac55..
index ..8e255787a895389f3a56ae6544ce02d737bc9a6f 100644
--- a/src/command.C
+++ b/src/command.C
@@ -2338,7 +2338,7 @@ rxvt_term::next_char () NOTHROW

       if (len == (size_t)-1)
         {
-          mbrtowc (0, 0, 0, mbstate); // reset now undefined conversion state
+          mbstate.reset (); // reset now undefined conversion state
           return (unsigned char)*cmdbuf_ptr++; // the _occasional_ latin1 character is allowed to slip through
         }

-----END OF PAGE-----