diff options
author | roam <roam@FreeBSD.org> | 2004-08-27 20:45:45 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2004-08-27 20:45:45 +0800 |
commit | 13b58987821fcbe68e3a6da87ed7f915ac27664c (patch) | |
tree | 6747ce4f3d1498d7562d10293fa4e3caf2c9b5a6 /misc/display/files | |
parent | b8f9de1a7bcfd3c02cab5c507873ec84abc3e771 (diff) | |
download | freebsd-ports-gnome-13b58987821fcbe68e3a6da87ed7f915ac27664c.tar.gz freebsd-ports-gnome-13b58987821fcbe68e3a6da87ed7f915ac27664c.tar.zst freebsd-ports-gnome-13b58987821fcbe68e3a6da87ed7f915ac27664c.zip |
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.
Diffstat (limited to 'misc/display/files')
-rw-r--r-- | misc/display/files/patch-aa | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/display/files/patch-aa b/misc/display/files/patch-aa index 5f12009460d1..dd3156f827b2 100644 --- a/misc/display/files/patch-aa +++ b/misc/display/files/patch-aa @@ -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; |