[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#175174: marked as done (qemacs: utf8 input is broken in console mode)



Your message dated Sat, 17 Oct 2009 11:33:45 +0100
with message-id <1255775625.331622.12571.nullmailer@kmos.homeip.net>
and subject line Package qemacs has been removed from Debian
has caused the Debian Bug report #175174,
regarding qemacs: utf8 input is broken in console mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
175174: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=175174
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: qemacs
Version: 0.2+really0.3pre12-2
Severity: normal

Maybe a duplicate of bug #152696, but I think #152696 is more generic, this one
is restricted to using qemacs in a utf8 xterm.

Here is a patch to make qemacs correctly handle utf8 input in console mode (at
least in my computer ;).

Bye.

--- tty.c.orig	2002-05-02 02:27:40.000000000 +0200
+++ tty.c	2003-01-03 13:50:13.000000000 +0100
@@ -198,14 +198,25 @@
 
         /* charset handling */
         if (s->charset == &charset_utf8) {
-            if (ts->utf8_state == 0) {
-                const char *p;
-                p = ts->buf;
-                ch = utf8_decode(&p);
-            } else {
+            if (ts->utf8_state == 0 && ts->utf8_index == 0) {
                 ts->utf8_state = utf8_length[ts->buf[0]] - 1;
-                ts->utf8_index = 0;
-                continue;
+                if (ts->utf8_state == 0) {  /* ASCII */
+                    ch = ts->buf[0];
+                } else {
+                    ts->utf8_index++;
+                    continue;
+                }
+            } else {
+                const char *p;
+                ts->utf8_index++;
+                ts->utf8_state--;
+                if (ts->utf8_state == 0)
+                {
+                	p = ts->buf;
+                	ch = utf8_decode(&p);
+                	ts->utf8_index = 0;
+                } else
+                	continue;
             }
         } else {
             ch = ts->buf[0];

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux pelikan 2.4.20-rc1 #1 jue nov 7 16:26:05 CET 2002 i686 unknown unknown GNU/Linux

Versions of the packages qemacs depends on:
ii  libc6          2.3.1-8        GNU C Library: Shared libraries and Timezone
ii  libpng2        1.0.12-8       PNG library - runtime
ii  xlibs          4.2.1-4        X Window System client libraries


--- End Message ---
--- Begin Message ---
Version: 0.3.1.cvs.20050713-5+rm

You filled the bug http://bugs.debian.org/175174 in Debian BTS
against the package qemacs. I'm closing it at *unstable*, but it will
remain open for older distributions.

For more information about this package's removal, read
http://bugs.debian.org/550492. That bug might give the reasons why
this package was removed and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

--
Marco Rodrigues


--- End Message ---

Reply to: