summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2009-06-23 15:42:09 +0200
committerRocco Rutte <pdmef@gmx.net>2009-06-23 15:42:09 +0200
commit6970e71e0702906859b26df6562f9a6e4811f8c1 (patch)
tree7cc19ccf182879206cf83e62e9b9e30a5017d061 /handler.c
parent4837d06a00e74c27b143d72914b094224f473cbe (diff)
Implement state_putws() and state_putwc(), see #3148.
This is needed to unbreak text/enriched rendering on Linux.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index 25e1a0d3..a45fbab6 100644
--- a/handler.c
+++ b/handler.c
@@ -807,7 +807,7 @@ static int text_enriched_handler (BODY *a, STATE *s)
{
if (state != ST_EOF)
{
- if (!bytes || (wc = fgetwc (s->fpin)) == EOF)
+ if (!bytes || (wc = fgetwc (s->fpin)) == WEOF)
state = ST_EOF;
else
bytes--;