[packages/librhtv] - Avoid an infinite loop
witekfl
witekfl at pld-linux.org
Mon Feb 17 14:47:51 CET 2014
commit c68a3ff5171bb2d87324427d64ee102e4fdd00f0
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Mon Feb 17 14:43:53 2014 +0100
- Avoid an infinite loop
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 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
diff --git a/infinite-loop.patch b/infinite-loop.patch
new file mode 100644
index 0000000..1f762e9
--- /dev/null
+++ b/infinite-loop.patch
@@ -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];
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/librhtv.git/commitdiff/fc8a39a89fe473b676ad6c580545a7bbde55b5fe
More information about the pld-cvs-commit
mailing list