]> git.pld-linux.org Git - packages/librhtv.git/commitdiff
- Avoid an infinite loop
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Mon, 17 Feb 2014 13:43:53 +0000 (14:43 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Mon, 17 Feb 2014 13:43:53 +0000 (14:43 +0100)
The infinite loop happened when run setedit or infview with
the following configuration ( ~/.tvrc ) :
[TV]
{
 [Linux]
 {
  AppCP=885920
  ScrCP=885920
  InpCP=885920
  UseVCS=1
 }
}

LANG=pl_PL
and the ter-216n font loaded.

infinite-loop.patch [new file with mode: 0644]

diff --git a/infinite-loop.patch b/infinite-loop.patch
new file mode 100644 (file)
index 0000000..1f762e9
--- /dev/null
@@ -0,0 +1,17 @@
+--- tvision/classes/codepage.cc.orig   2014-02-17 14:23:43.029167096 +0100
++++ tvision/classes/codepage.cc        2014-02-17 14:28:17.483411445 +0100
+@@ -1905,9 +1905,14 @@ void TVCodePage::RemapBufferGeneric(int
+      while (!fromCode[val])
+        { // Find an equivalent for val
+         if (val<256)
++        {
++           if (val == Similar[val]) break;
+            val=Similar[val];
++        }
+         else
++        {
+            val=Similar2[val-256];
++        }
+        }
+      fromCode[toCode[i]]=fromCode[val];
+     }
This page took 0.059931 seconds and 4 git commands to generate.