Ergebnis für URL: http://bugs.debian.org/338402
                           Debian Bug report logs - [1]#338402
                   elinks doesn't work on dumb terminal with odd parity

   [2]version graph

   Package: [3]elinks; Maintainer for [4]elinks is [5]aHhkm+d+ a+l+m+hkm+w+d+y+
   (Ahmed El-Mahmoudy) ; Source for [6]elinks is
   [7]src:elinks ([8]PTS, [9]buildd, [10]popcon).

   Reported by: [11]David Lawyer 

   Date: Thu, 10 Nov 2005 04:03:01 UTC

   Severity: normal

   Tags: fixed-upstream

   Found in version elinks/0.9.3

   Fixed in version elinks/0.11.3-5

   Done: Y Giridhar Appaji Nag 

   Bug is archived. No further changes may be made.

   Forwarded to [12]http://bugzilla.elinks.cz/show_bug.cgi?id=54

   [13]Toggle useless messages

   View this report as an [14]mbox folder, [15]status mbox, [16]maintainer mbox
     ____________________________________________________________________________

   Report forwarded to debian-bugs-dist@lists.debian.org, Peter Gervai
   :
   Bug#338402; Package elinks. ([17]full text, [18]mbox, [19]link).
     ____________________________________________________________________________

   Acknowledgement sent to David Lawyer :
   New Bug report received and forwarded. Copy sent to Peter Gervai
   . ([20]full text, [21]mbox, [22]link).
     ____________________________________________________________________________

   [23]Message #5 received at submit@bugs.debian.org ([24]full text, [25]mbox,
   [26]reply):

   From: David Lawyer 
   To: submit@bugs.debian.org
   Subject: elinks doesn't work on dumb terminal with odd parity
   Date: Wed, 9 Nov 2005 19:54:41 -0800

Package: elinks
Version: 0.9.3

I use a CIT-101e text terminal and have enabled odd parity in the
terminal hardware.  It seems to work fine for other programs.  When I
login, the parity is automatically detected and the "stty" interface
is set to parity enabled (parenb) and 7-bit bytes (cs7).  When I use
other programs (such as lynx :-) these settings stay the same.  But if
I start elinks, then these setting are apparently changed by elinks to
-parenb and cs8.  Now since the terminal hardware has parity and 7-bit
bytes enabled, it will not work.  What actually happens is that any
character with wrong parity is not displayed which means I only see
about half the characters which should be on the screen.  Or more
precisely, the characters that happen to be even parity (even number
of bits) display as special error characters.

One can observe this behavior on virtual terminals.  On /dev/tty2 do:
stty parenb cs7.  Then go to another virtual terminal (by say Alt-F3)
and do: stty -F /dev/tty2 -a and note that you really have parenb, cs7
on tty2.  Then back to tty2 and start elinks.  Then to tty3 and repeat
the previous stty command and you'll see that elinks has changed these
stty settings.

                        David Lawyer


     ____________________________________________________________________________

   Noted your statement that Bug has been forwarded to
   [27]http://bugzilla.elinks.cz/show_bug.cgi?id=54. Request was from Kalle Olavi
   Niemitalo  to control@bugs.debian.org. (Tue, 01 May 2007 17:00:04
   GMT) ([28]full text, [29]mbox, [30]link).
     ____________________________________________________________________________

   Tags added: upstream Request was from Y Giridhar Appaji Nag 
   to control@bugs.debian.org. (Sun, 13 Jan 2008 10:57:10 GMT) ([31]full text,
   [32]mbox, [33]link).
     ____________________________________________________________________________

   Information forwarded to debian-bugs-dist@lists.debian.org, Y Giridhar Appaji Nag
   :
   Bug#338402; Package elinks. ([34]full text, [35]mbox, [36]link).
     ____________________________________________________________________________

   Acknowledgement sent to Kalle Olavi Niemitalo :
   Extra info received and forwarded to list. Copy sent to Y Giridhar Appaji Nag
   . ([37]full text, [38]mbox, [39]link).
     ____________________________________________________________________________

   [40]Message #14 received at 338402@bugs.debian.org ([41]full text, [42]mbox,
   [43]reply):

   From: Kalle Olavi Niemitalo 
   To: David Lawyer 
   Cc: 338402@bugs.debian.org
   Subject: Re: Bug#338402: elinks doesn't work on dumb terminal with odd parity
   Date: Sun, 13 Jan 2008 19:57:23 +0200

[[44]Message part 1 (text/plain, inline)]
David Lawyer  writes:

> But if I start elinks, then these setting are apparently
> changed by elinks to -parenb and cs8.

I think I fixed this in ELinks 0.13.GIT.
Could you test the osdep.c part of the patch below?
If it works OK, I can then apply it to the 0.11 and 0.12 branches too.

commit 87f1661314476e96c0f4010070b92bad2aba67af
Author:     Kalle Olavi Niemitalo 
AuthorDate: Sun Jan 13 19:23:03 2008 +0200
Commit:     Kalle Olavi Niemitalo 
CommitDate: Sun Jan 13 19:26:00 2008 +0200

    Bug 54: Don't force 8-bit characters and no parity.

    Actually, don't use the cfmakeraw function at all,
    and don't look for it during configure either.

diff --git a/NEWS b/NEWS
index f0b1931..b246ded 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,9 @@ ELinks 0.13.GIT now:

 To be released as ELinks 0.13.0.

+* Bug 54, Debian bug 338402: Don't force the terminal to 8 bits with
+  no parity.
+
 ELinks 0.12.GIT now:
 --------------------

diff --git a/configure.in b/configure.in
index 9a05ee1..09a4016 100644
--- a/configure.in
+++ b/configure.in
@@ -290,7 +290,7 @@ AC_PROG_GCC_TRADITIONAL
 AC_FUNC_MEMCMP
 AC_FUNC_MMAP
 AC_FUNC_STRFTIME
-AC_CHECK_FUNCS(atoll cfmakeraw gethostbyaddr herror strerror)
+AC_CHECK_FUNCS(atoll gethostbyaddr herror strerror)
 AC_CHECK_FUNCS(popen uname access chmod alarm timegm mremap)
 AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr strstr strchr strrchr)
 AC_CHECK_FUNCS(memmove bcopy stpcpy strdup index isdigit mempcpy memrchr)
diff --git a/src/osdep/osdep.c b/src/osdep/osdep.c
index d7705be..b4ea296 100644
--- a/src/osdep/osdep.c
+++ b/src/osdep/osdep.c
@@ -805,20 +805,16 @@ unblock_stdin(void)
 void
 elinks_cfmakeraw(struct termios *t)
 {
-#ifdef HAVE_CFMAKERAW
-       cfmakeraw(t);
-#ifdef VMIN
-       t->c_cc[VMIN] = 1; /* cfmakeraw() is broken on AIX --mikulas */
-#endif
-#else
+       /* Bug 54: Do not alter the character-size and parity bits in
+        * t->c_cflag.  If they have unusual values, the terminal
+        * probably requires those and won't work if ELinks changes
+        * the flags.  The cfmakeraw function would set 8-bit characters
+        * and no parity, so don't use that.  */
        t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
        t->c_oflag &= ~OPOST;
        t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
-       t->c_cflag &= ~(CSIZE|PARENB);
-       t->c_cflag |= CS8;
        t->c_cc[VMIN] = 1;
        t->c_cc[VTIME] = 0;
-#endif
 }

 #if !defined(CONFIG_MOUSE) || (!defined(CONFIG_GPM) && !defined(CONFIG_SYSMOUSE) && !defi
ned(OS2_MOUSE))

[[45]Message part 2 (application/pgp-signature, inline)]
     ____________________________________________________________________________

   Tags added: fixed-upstream Request was from Y Giridhar Appaji Nag
    to control@bugs.debian.org. (Tue, 04 Mar 2008 09:48:05 GMT)
   ([46]full text, [47]mbox, [48]link).
     ____________________________________________________________________________

   Tags added: pending Request was from Y Giridhar Appaji Nag 
   to control@bugs.debian.org. (Tue, 04 Mar 2008 13:57:07 GMT) ([49]full text,
   [50]mbox, [51]link).
     ____________________________________________________________________________

   Tags removed: upstream Request was from Y Giridhar Appaji Nag
    to control@bugs.debian.org. (Sat, 08 Mar 2008 02:57:07 GMT)
   ([52]full text, [53]mbox, [54]link).
     ____________________________________________________________________________

   Reply sent to Y Giridhar Appaji Nag :
   You have taken responsibility. ([55]full text, [56]mbox, [57]link).
     ____________________________________________________________________________

   Notification sent to David Lawyer :
   Bug acknowledged by developer. ([58]full text, [59]mbox, [60]link).
     ____________________________________________________________________________

   [61]Message #25 received at 338402-close@bugs.debian.org ([62]full text,
   [63]mbox, [64]reply):

   From: Y Giridhar Appaji Nag 
   To: 338402-close@bugs.debian.org
   Subject: Bug#338402: fixed in elinks 0.11.3-5
   Date: Mon, 10 Mar 2008 07:47:04 +0000

Source: elinks
Source-Version: 0.11.3-5

We believe that the bug you reported is fixed in the latest version of
elinks, which is due to be installed in the Debian FTP archive:

elinks-data_0.11.3-5_all.deb
  to pool/main/e/elinks/elinks-data_0.11.3-5_all.deb
elinks-doc_0.11.3-5_all.deb
  to pool/main/e/elinks/elinks-doc_0.11.3-5_all.deb
elinks-lite_0.11.3-5_i386.deb
  to pool/main/e/elinks/elinks-lite_0.11.3-5_i386.deb
elinks_0.11.3-5.diff.gz
  to pool/main/e/elinks/elinks_0.11.3-5.diff.gz
elinks_0.11.3-5.dsc
  to pool/main/e/elinks/elinks_0.11.3-5.dsc
elinks_0.11.3-5_i386.deb
  to pool/main/e/elinks/elinks_0.11.3-5_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 338402@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Y Giridhar Appaji Nag  (supplier of updated elinks package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 06 Mar 2008 12:11:51 +0530
Source: elinks
Binary: elinks elinks-data elinks-doc elinks-lite
Architecture: source i386 all
Version: 0.11.3-5
Distribution: unstable
Urgency: low
Maintainer: Y Giridhar Appaji Nag 
Changed-By: Y Giridhar Appaji Nag 
Description:
 elinks     - Advanced text-mode WWW browser
 elinks-data - Data files for ELinks - An advanced text-mode WWW browser
 elinks-doc - Documentation for ELinks - An advanced text-mode WWW browser
 elinks-lite - Lightweight version of Elinks - An advanced text-mode WWW browser
Closes: [65]303164 [66]338402 [67]466483
Changes:
 elinks (0.11.3-5) unstable; urgency=low
 .
   * Pass --enable-88-colors to configure for main build (Closes: #[68]466483)
   * Patch 11_303164_css_display_none.diff to handle display:none in CSS
     (Closes: #[69]303164)
   * Patch 12_338402_cfmakeraw_exotic_term.diff to fix cfmakeraw() to not
     disable XON/XOFF flow control (Closes: #[70]338402)
   * Remove linda overrides files
Files:
 048cd18bc9ef0b0a6e3da2007d236f87 1078 web optional elinks_0.11.3-5.dsc
 01cf6669fa17f6f8e9338f6216b20524 19589 web optional elinks_0.11.3-5.diff.gz
 b10747f4c3a838bc30d6430ee73ad7a3 459230 web optional elinks_0.11.3-5_i386.deb
 9ead39324a40294391656d790c8f6183 323590 web extra elinks-lite_0.11.3-5_i386.deb
 7e00e2dea75b1dd7a901af999c8b93ee 667162 web optional elinks-data_0.11.3-5_all.deb
 f94803a4823c23425a8b24b36515dda9 543820 doc optional elinks-doc_0.11.3-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH1OXX4eu+pR04mIcRAmEmAKCPNnahSiibewu7GegH9nHzuFlJPACgtyz5
Tby91BhWrHBTq7EspiyEH9M=
=RGnR
-----END PGP SIGNATURE-----




     ____________________________________________________________________________

   Bug archived. Request was from Debbugs Internal Request 
   to internal_control@bugs.debian.org. (Tue, 08 Apr 2008 07:25:56 GMT) ([71]full
   text, [72]mbox, [73]link).
     ____________________________________________________________________________

   Send a report that [74]this bug log contains spam.
     ____________________________________________________________________________


    Debian bug tracking system administrator . Last
    modified: Wed May 8 08:30:54 2024; Machine Name: buxtehude
    [76]Debian Bug tracking system
    Debbugs is free software and licensed under the terms of the GNU Public License
    version 2. The current version can be obtained from
    [77]https://bugs.debian.org/debbugs-source/.
    Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97
    Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.

References

   1. mailto:338402@bugs.debian.org
   2. https://bugs.debian.org/cgi-bin/version.cgi?info=1;absolute=0;found=elinks%2F0.9.3;collapse=1;fixed=elinks%2F0.11.3-5;package=elinks
   3. https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=elinks
   4. https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=elinks
   5. https://bugs.debian.org/cgi-bin/pkgreport.cgi?maint=aelmahmoudy%40users.sourceforge.net
   6. https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=elinks
   7. https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=elinks
   8. https://tracker.debian.org/pkg/elinks
   9. https://buildd.debian.org/elinks
  10. https://qa.debian.org/popcon.php?package=elinks
  11. https://bugs.debian.org/cgi-bin/pkgreport.cgi?submitter=dave%40lafn.org
  12. http://bugzilla.elinks.cz/show_bug.cgi?id=54
  13. javascript:toggle_infmessages();
  14. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes
  15. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;mboxstatus=yes
  16. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;mboxmaint=yes
  17. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=2
  18. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=2
  19. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#1
  20. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=4
  21. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=4
  22. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#3
  23. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#5
  24. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=5
  25. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=5
  26. mailto:338402@bugs.debian.org?References=%3C20051110035441.GA3410%40lafn.org%3E&In-Reply-To=%3C20051110035441.GA3410%40lafn.org%3E&body=On%20Wed%2C%209%20Nov%202005%2019%3A54%3A41%20-0800%20David%20Lawyer%20%3Cdave%40lafn.org%3E%20wrote%3A%0A%3E%20Package%3A%20elinks%0A%3E%20Version%3A%200.9.3%0A%3E%20%0A%3E%20I%20use%20a%20CIT-101e%20text%20terminal%20and%20have%20enabled%20odd%20parity%20in%20the%0A%3E%20terminal%20hardware.%20%20It%20seems%20to%20work%20fine%20for%20other%20programs.%20%20When%20I%0A%3E%20login%2C%20the%20parity%20is%20automatically%20detected%20and%20the%20%22stty%22%20interface%0A%3E%20is%20set%20to%20parity%20enabled%20%28parenb%29%20and%207-bit%20bytes%20%28cs7%29.%20%20When%20I%20use%0A%3E%20other%20programs%20%28such%20as%20lynx%20%3A-%29%20these%20settings%20stay%20the%20same.%20%20But%20if%0A%3E%20I%20start%20elinks%2C%20then%20these%20setting%20are%20apparently%20changed%20by%20elinks%20to%0A%3E%20-parenb%20and%20cs8.%20%20Now%20since%20the%20terminal%20hardware%20has%20parity%20and%207-bit%0A%3E%20bytes%20enabled%2C%20it%20will%20not%20work.%20%20What%20actually%20happens%20is%20that%20any%0A%3E%20character%20with%20wrong%20parity%20is%20not%20displayed%20which%20means%20I%20only%20see%0A%3E%20about%20half%20the%20characters%20which%20should%20be%20on%20the%20screen.%20%20Or%20more%0A%3E%20precisely%2C%20the%20characters%20that%20happen%20to%20be%20even%20parity%20%28even%20number%0A%3E%20of%20bits%29%20display%20as%20special%20error%20characters.%0A%3E%20%0A%3E%20One%20can%20observe%20this%20behavior%20on%20virtual%20terminals.%20%20On%20%2Fdev%2Ftty2%20do%3A%0A%3E%20stty%20parenb%20cs7.%20%20Then%20go%20to%20another%20virtual%20terminal%20%28by%20say%20Alt-F3%29%0A%3E%20and%20do%3A%20stty%20-F%20%2Fdev%2Ftty2%20-a%20and%20note%20that%20you%20really%20have%20parenb%2C%20cs7%0A%3E%20on%20tty2.%20%20Then%20back%20to%20tty2%20and%20start%20elinks.%20%20Then%20to%20tty3%20and%20repeat%0A%3E%20the%20previous%20stty%20command%20and%20you%27ll%20see%20that%20elinks%20has%20changed%20these%0A%3E%20stty%20settings.%0A%3E%20%0A%3E%20%09%09%09David%20Lawyer%0A%3E%20%0A%3E%20%0A&subject=Re%3A%20elinks%20doesn%27t%20work%20on%20dumb%20terminal%20with%20odd%20parity
  27. http://bugzilla.elinks.cz/show_bug.cgi?id=54
  28. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=7
  29. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=7
  30. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#6
  31. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=9
  32. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=9
  33. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#8
  34. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=11
  35. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=11
  36. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#10
  37. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=13
  38. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=13
  39. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#12
  40. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#14
  41. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=14
  42. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=14
  43.
  44. https://bugs.debian.org/cgi-bin/bugreport.cgi?att=0;bug=338402;msg=14
  45. https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=338402;msg=14
  46. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=16
  47. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=16
  48. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#15
  49. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=18
  50. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=18
  51. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#17
  52. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=20
  53. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=20
  54. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#19
  55. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=22
  56. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=22
  57. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#21
  58. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=24
  59. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=24
  60. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#23
  61. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#25
  62. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=25
  63. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=25
  64.
  65. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=303164
  66. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402
  67. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466483
  68. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466483
  69. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=303164
  70. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402
  71. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;msg=27
  72. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402;mbox=yes;msg=27
  73. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338402#26
  74. https://bugs.debian.org/cgi-bin/bugspam.cgi?bug=338402
  75. mailto:owner@bugs.debian.org
  76. https://www.debian.org/Bugs/
  77. https://bugs.debian.org/debbugs-source/


Usage: http://www.kk-software.de/kklynxview/get/URL
e.g. http://www.kk-software.de/kklynxview/get/http://www.kk-software.de
Errormessages are in German, sorry ;-)