1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

Fix a long-standing problem with displaying characters with the 8th

bit set: the return value of fgets() should NOT be kept in a signed
char variable, since passing that to addch() would sign-extend it,
setting a whole lot of attribute bits and resulting in a bold, blinking,
alt-charset display of e.g. all Cyrillic characters.  Instead, keep
fgets()'s result in an int variable, as $DEITY (dmr? :) intended.

Bump PORTREVISION for the functionality change.
This commit is contained in:
Peter Pentchev 2004-08-27 12:45:45 +00:00
parent 2b29acfbab
commit 92b591f201
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117415
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= display
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.ipsmart.com/src/
EXTRACT_SUFX= .tgz

View File

@ -27,12 +27,14 @@
for(i = 0; i < 128; i++)
{
@@ -90,7 +90,7 @@
@@ -90,8 +90,8 @@
void display()
{
- FILE *fp, *popen();
- char ch;
+ FILE *fp;
char ch;
+ int ch;
char *dt;
time_t tnow;
int nlines;